Navigation
API > API/Runtime > API/Runtime/RenderCore
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/RenderGraphResources.h |
| Include | #include "RenderGraphResources.h" |
Syntax
struct FRDGSubresourceState
Remarks
Used for tracking the state of an individual subresource during execution.
Variables
| Type | Name | Description | |
|---|---|---|---|
| ERHIAccess | Access | The last used access on the pass. | |
| FRDGPassHandlesByPipeline | FirstPass | The first pass in this state. | |
| EResourceTransitionFlags | Flags | The last used transition flags on the pass. | |
| FRDGPassHandlesByPipeline | LastPass | The last pass in this state. | |
| FRDGViewUniqueFilter | NoUAVBarrierFilter | The last no-UAV barrier to be used by this subresource. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRDGSubresourceState
(
ERHIAccess InAccess |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | Finalize () |
Finalizes the state at the end of the transition chain; keeps access intact. | |
| FRDGPassHandle | GetFirstPass () |
Returns the first pass across either pipe. | |
| FRDGPassHandle | GetLastPass () |
Returns the last pass across either pipe. | |
| ERHIPipeline | GetPipelines () |
Returns the pipeline mask this state is used on. | |
| bool | IsMergeAllowed
(
ERDGViewableResourceType ResourceType, |
Given a before and after state, returns whether they can be merged into a single state. | |
| bool | IsTransitionRequired
(
const FRDGSubresourceState& Previous, |
Given a before and after state, returns whether a resource barrier is required. | |
| bool | IsUsedBy
(
ERHIPipeline Pipeline |
Returns whether the state is used by the pipeline. | |
| void | SetPass
(
ERHIPipeline Pipeline, |
Initializes the first and last pass and the pipeline. Clears any other pass state. | |
| void | Validate () |
Validates that the state is in a correct configuration for use. |