Encapsulates a bound shader state's entry in the cache. 更多...
#include <BoundShaderStateCache.h>
被 FCachedBoundShaderStateLink_Threadsafe 继承.
Public 成员函数 | |
| FCachedBoundShaderStateLink (FRHIVertexDeclaration *VertexDeclaration, FRHIVertexShader *VertexShader, FRHIPixelShader *PixelShader, FRHIBoundShaderState *InBoundShaderState, bool bAddToSingleThreadedCache=true) | |
| Adds the bound shader state to the cache. | |
| FCachedBoundShaderStateLink (FRHIVertexDeclaration *VertexDeclaration, FRHIVertexShader *VertexShader, FRHIPixelShader *PixelShader, FRHIHullShader *HullShader, FRHIDomainShader *DomainShader, FRHIGeometryShader *GeometryShader, FRHIBoundShaderState *InBoundShaderState, bool bAddToSingleThreadedCache=true) | |
| Adds the bound shader state to the cache. | |
| FORCEINLINE FRHIVertexDeclaration * | GetVertexDeclaration () const |
| Get the RHI vertex declaration. | |
| FORCEINLINE FRHIVertexShader * | GetVertexShader () const |
| Get the RHI shader for the given frequency. | |
| ~FCachedBoundShaderStateLink () | |
| Destructor. 更多... | |
Public 属性 | |
| FRHIBoundShaderState * | BoundShaderState |
| The cached bound shader state. 更多... | |
Encapsulates a bound shader state's entry in the cache.
Handles removal from the bound shader state cache on destruction. RHIs that use cached bound shader states should create one for each bound shader state.
| FCachedBoundShaderStateLink::~FCachedBoundShaderStateLink | ( | ) |
Destructor.
Removes the bound shader state from the cache.
| FRHIBoundShaderState* FCachedBoundShaderStateLink::BoundShaderState |
The cached bound shader state.
This is not a reference counted pointer because we rely on the RHI to destruct this object when the bound shader state this references is destructed.