Nameless Engine
Loading...
Searching...
No Matches
ne::PipelineManager::ShaderPipelines Struct Reference

#include <PipelineManager.h>

Public Attributes

std::unordered_map< std::set< ShaderMacro >, std::shared_ptr< Pipeline >, ShaderMacroSetHashshaderPipelines
 

Detailed Description

Groups information about pipelines that use the same shaders.

Member Data Documentation

◆ shaderPipelines

std::unordered_map<std::set<ShaderMacro>, std::shared_ptr<Pipeline>, ShaderMacroSetHash> ne::PipelineManager::ShaderPipelines::shaderPipelines

Map of pairs "material defined macros" and "pipelines that were created from the same shader to use these different macros".

Remarks
Since shader macros have prefixes that define which shader stage they are valid for we won't have problems with same macros on different shader stages (because of combining and storing all macros in just one std::set).

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