Rebel Fork Framework
Urho3D::LightProcessorCache Class Reference

Cache of light processors. More...

#include <Urho3D/RenderPipeline/LightProcessor.h>

Inheritance diagram for Urho3D::LightProcessorCache:
Urho3D::NonCopyable

Classes

struct  CachedLightProcessor

Public Member Functions

void SetSettings (const LightProcessorCacheSettings &settings)
void Update (float timeStep)
LightProcessor * GetLightProcessor (Light *light)
 Should be called on every frame to notify LRU cache.

Private Types

using CacheMap = ea::unordered_map<WeakPtr<Light>, CachedLightProcessor>

Private Attributes

LightProcessorCacheSettings settings_
float timeAccumulator_ {}
unsigned currentGeneration_ {}
CacheMap cache_

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

Detailed Description

Cache of light processors.


The documentation for this class was generated from the following files:
  • Urho3D/RenderPipeline/LightProcessor.h
  • Urho3D/RenderPipeline/LightProcessor.cpp