Pyrogenesis  trunk
Public Member Functions | Public Attributes | List of all members
CShaderManager::EffectCacheKey Struct Reference

Key for effect cache lookups. More...

Collaboration diagram for CShaderManager::EffectCacheKey:
Collaboration graph
[legend]

Public Member Functions

bool operator== (const EffectCacheKey &b) const
 

Public Attributes

CStrIntern name
 
CShaderDefines defines1
 
CShaderDefines defines2
 

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

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

Member Data Documentation

CShaderDefines CShaderManager::EffectCacheKey::defines1
CShaderDefines CShaderManager::EffectCacheKey::defines2
CStrIntern CShaderManager::EffectCacheKey::name

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