|
Rebel Fork Framework
|
Pipeline state cache for UI batches. More...
#include <Urho3D/RenderPipeline/BatchStateCache.h>
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, CachedUIBatchState > | cache_ |
| Cached states, possibly invalid. | |
Additional Inherited Members | |
Protected Member Functions inherited from Urho3D::NonCopyable | |
| NonCopyable (const NonCopyable &other)=delete | |
| NonCopyable (NonCopyable &&other)=delete | |
| NonCopyable & | operator= (const NonCopyable &other)=delete |
| NonCopyable & | operator= (NonCopyable &&other)=delete |
Pipeline state cache for UI batches.
| 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.
| PipelineState * Urho3D::UIBatchStateCache::GetPipelineState | ( | const UIBatchStateKey & | key | ) | const |
Return existing pipeline state or nullptr if not found. Thread-safe. Resulting state may be invalid.