Rebel Fork Framework
Urho3D::UIBatchStateCache Class Reference

Pipeline state cache for UI batches. More...

#include <Urho3D/RenderPipeline/BatchStateCache.h>

Inheritance diagram for Urho3D::UIBatchStateCache:
Urho3D::NonCopyable Urho3D::DefaultUIBatchStateCache

Public Member Functions

void Invalidate ()
 Invalidate cache.
 
PipelineState * GetPipelineState (const UIBatchStateKey &key) const
 
PipelineState * GetOrCreatePipelineState (const UIBatchStateKey &key, const UIBatchStateCreateContext &ctx, UIBatchStateCacheCallback *callback)
 

Private Attributes

ea::unordered_map< UIBatchStateKey, CachedUIBatchStatecache_
 Cached states, possibly invalid.
 

Additional Inherited Members

- Protected Member Functions inherited from Urho3D::NonCopyable
 NonCopyable (const NonCopyable &other)=delete
 
 NonCopyable (NonCopyable &&other)=delete
 
NonCopyableoperator= (const NonCopyable &other)=delete
 
NonCopyableoperator= (NonCopyable &&other)=delete
 

Detailed Description

Pipeline state cache for UI batches.

Member Function Documentation

◆ GetOrCreatePipelineState()

PipelineState * Urho3D::UIBatchStateCache::GetOrCreatePipelineState ( const UIBatchStateKey key,
const UIBatchStateCreateContext ctx,
UIBatchStateCacheCallback callback 
)

Return existing or create new pipeline state. Not thread safe. Resulting state may be invalid.

◆ GetPipelineState()

PipelineState * Urho3D::UIBatchStateCache::GetPipelineState ( const UIBatchStateKey key) const

Return existing pipeline state or nullptr if not found. Thread-safe. Resulting state may be invalid.


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