Navigation
API > API/Runtime > API/Runtime/RenderCore
Used for tracking the state of an individual subresource during execution.
| Name | FRDGSubresourceState |
| Type | struct |
| Header File | /Engine/Source/Runtime/RenderCore/Public/RenderGraphResources.h |
| Include Path | #include "RenderGraphResources.h" |
Syntax
struct FRDGSubresourceState
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| RenderGraphResources.h | |||
FRDGSubresourceState
(
ERHIAccess InAccess |
RenderGraphResources.h | ||
FRDGSubresourceState
(
ERHIPipeline Pipeline, |
RenderGraphResources.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Access | ERHIAccess | The last used access on the pass. | RenderGraphResources.h | |
| BarrierLocation | ERDGBarrierLocation | Used to specify whether the state is applied during the prologue or epilogue of the pass. | RenderGraphResources.h | |
| FirstPass | FRDGPassHandlesByPipeline | The first pass in this state. | RenderGraphResources.h | |
| Flags | EResourceTransitionFlags | The last used transition flags on the pass. | RenderGraphResources.h | |
| LastPass | FRDGPassHandlesByPipeline | The last pass in this state. | RenderGraphResources.h | |
| NoUAVBarrierFilter | FRDGViewUniqueFilter | The last no-UAV barrier to be used by this subresource. | RenderGraphResources.h | |
| ReservedCommitHandle | FRDGBufferReservedCommitHandle | Whether this subresource state represents a commit operation for a reserved resource. | RenderGraphResources.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRDGPassHandle GetFirstPass() |
Returns the first pass across either pipe. | RenderGraphResources.h | |
FRDGPassHandle GetLastPass() |
Returns the last pass across either pipe. | RenderGraphResources.h | |
ERHIPipeline GetPipelines() |
Returns the pipeline mask this state is used on. | RenderGraphResources.h | |
bool IsUsedBy
(
ERHIPipeline Pipeline |
Returns whether the state is used by the pipeline. | RenderGraphResources.h | |
void SetPass
(
ERHIPipeline Pipeline, |
Initializes the first and last pass and the pipeline. Clears any other pass state. | RenderGraphResources.h | |
void Validate() |
Validates that the state is in a correct configuration for use. | RenderGraphResources.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static bool IsMergeAllowed
(
ERDGViewableResourceType ResourceType, |
Given a before and after state, returns whether they can be merged into a single state. | RenderGraphResources.h | |
static bool IsTransitionRequired
(
const FRDGSubresourceState& Previous, |
Given a before and after state, returns whether a resource barrier is required. | RenderGraphResources.h |