Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
CShaderManager::EffectCacheKey Struct Reference

Key for effect cache lookups. More...

Collaboration diagram for CShaderManager::EffectCacheKey:

Public Member Functions

bool operator== (const EffectCacheKey &b) const
 

Public Attributes

CStrIntern name
 
CShaderDefines defines
 

Detailed Description

Key for effect cache lookups.

This stores two separate CShaderDefines because the renderer typically has one set from the rendering context and one set from the material; by handling both separately here, we avoid the cost of having to merge the two sets into a single one before doing the cache lookup.

Member Function Documentation

◆ operator==()

bool CShaderManager::EffectCacheKey::operator== ( const EffectCacheKey b) const

Member Data Documentation

◆ defines

CShaderDefines CShaderManager::EffectCacheKey::defines

◆ name

CStrIntern CShaderManager::EffectCacheKey::name

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