Navigation
API > API/Runtime > API/Runtime/RHICore
A list of the most recently used bound shader states. This is used to keep bound shader states that have been used recently from being freed, as they're likely to be used again soon.
| Name | TBoundShaderStateHistory |
| Type | class |
| Header File | /Engine/Source/Runtime/RHICore/Public/BoundShaderStateHistory.h |
| Include Path | #include "BoundShaderStateHistory.h" |
Syntax
template<uint32 Size, bool TThreadSafe>
class TBoundShaderStateHistory : public FRenderResource
Inheritance Hierarchy
- FRenderResource → TBoundShaderStateHistory
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TBoundShaderStateHistory() |
BoundShaderStateHistory.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BoundShaderStateHistoryLock | FCriticalSection | BoundShaderStateHistory.h | ||
| BoundShaderStates | FBoundShaderStateRHIRef | BoundShaderStateHistory.h | ||
| NextBoundShaderStateIndex | uint32 | BoundShaderStateHistory.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void Add
(
FRHIBoundShaderState* BoundShaderState |
Adds a bound shader state to the history. | BoundShaderStateHistory.h | |
FRHIBoundShaderState * GetLast() |
BoundShaderStateHistory.h |
Overridden from FRenderResource
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ReleaseRHI() |
BoundShaderStateHistory.h |