![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <BoundShaderStateCache.h>
Inheritance diagram for FCachedBoundShaderStateLink:Public Attributes | |
| FRHIBoundShaderState * | BoundShaderState |
Protected Attributes | |
| FBoundShaderStateKey | Key |
| bool | bAddedToSingleThreadedCache |
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 | ( | FRHIVertexDeclaration * | VertexDeclaration, |
| FRHIVertexShader * | VertexShader, | ||
| FRHIPixelShader * | PixelShader, | ||
| FRHIBoundShaderState * | InBoundShaderState, | ||
| bool | bAddToSingleThreadedCache = true |
||
| ) |
Adds the bound shader state to the cache.
| FCachedBoundShaderStateLink::FCachedBoundShaderStateLink | ( | FRHIVertexDeclaration * | VertexDeclaration, |
| FRHIVertexShader * | VertexShader, | ||
| FRHIPixelShader * | PixelShader, | ||
| FRHIGeometryShader * | GeometryShader, | ||
| FRHIBoundShaderState * | InBoundShaderState, | ||
| bool | bAddToSingleThreadedCache = true |
||
| ) |
Adds the bound shader state to the cache.
| FCachedBoundShaderStateLink::FCachedBoundShaderStateLink | ( | FRHIMeshShader * | MeshShader, |
| FRHIAmplificationShader * | AmplificationShader, | ||
| FRHIPixelShader * | PixelShader, | ||
| FRHIBoundShaderState * | InBoundShaderState, | ||
| bool | bAddToSingleThreadedCache = true |
||
| ) |
Adds the bound shader state to the cache.
| FCachedBoundShaderStateLink::~FCachedBoundShaderStateLink | ( | ) |
Destructor. Removes the bound shader state from the cache.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get the RHI vertex declaration.
|
inline |
Get the RHI shader for the given frequency.
|
protected |
| 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.
|
protected |