Navigation
Unreal Engine C++ API Reference > Runtime > RHI
Inheritance Hierarchy
- FCachedBoundShaderStateLink
- FCachedBoundShaderStateLink_Threadsafe
References
Module | RHI |
Header | /Engine/Source/Runtime/RHI/Public/BoundShaderStateCache.h |
Include | #include "BoundShaderStateCache.h" |
Syntax
class FCachedBoundShaderStateLink
Remarks
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.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
bool | bAddedToSingleThreadedCache | |
![]() |
FRHIBoundShaderState * | BoundShaderState | The cached bound shader state. |
![]() |
FBoundShaderStateKey | Key |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FCachedBoundShaderStateLink
(
FRHIVertexDeclaration* VertexDeclaration, |
Adds the bound shader state to the cache. | |
![]() |
FCachedBoundShaderStateLink
(
FRHIMeshShader* MeshShader, |
Adds the bound shader state to the cache. | |
![]() |
FCachedBoundShaderStateLink
(
FRHIVertexDeclaration* VertexDeclaration, |
Adds the bound shader state to the cache. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Destructor. Removes the bound shader state from the cache. |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FRHIAmplificationShader * | ||
![]() ![]() |
FRHIGeometryShader * | ||
![]() ![]() |
FRHIMeshShader * | ||
![]() ![]() |
FRHIPixelShader * | ||
![]() ![]() |
FRHIVertexDeclaration * | Get the RHI vertex declaration. | |
![]() ![]() |
FRHIVertexShader * | Get the RHI shader for the given frequency. |