Nameless Engine
Loading...
Searching...
No Matches
ne::VulkanShadowMapArrayIndexManager::InternalData Struct Reference

Public Attributes

std::unique_ptr< ShaderArrayIndexManagerpIndexManager
 
std::unordered_map< ShadowMapHandle *, std::unique_ptr< ShaderArrayIndex > > registeredShadowMaps
 

Detailed Description

Groups mutex guarded data.

Member Data Documentation

◆ pIndexManager

std::unique_ptr<ShaderArrayIndexManager> ne::VulkanShadowMapArrayIndexManager::InternalData::pIndexManager

Actual index manager.

Remarks
We don't use index managers from specific pipelines because in the case of shadow maps all index managers related to shadow map shader resources will (and should) store the same indices, so in order to not duplicate this work (and in order to not store N unique ptr array index objects where N is the number of pipelines for just one shadow map) we just use one index manager located here.

◆ registeredShadowMaps

std::unordered_map<ShadowMapHandle*, std::unique_ptr<ShaderArrayIndex> > ne::VulkanShadowMapArrayIndexManager::InternalData::registeredShadowMaps

Pairs of "shadow map" - "index that this shadow map takes".


The documentation for this struct was generated from the following file: