Navigation
API > API/Runtime > API/Runtime/RenderCore
References
| Module | RenderCore |
| Header | /Engine/Source/Runtime/RenderCore/Public/RenderGraphValidation.h |
| Include | #include "RenderGraphValidation.h" |
Syntax
class FRDGUserValidation
Remarks
Used by the render graph builder to validate correct usage of the graph API from setup to execution. Validation is compiled out in shipping builds. This class tracks resources and passes as they are added to the graph. It will then validate execution of the graph, including whether resources are used during execution, and that they are properly produced before being consumed. All found issues must be clear enough to help the user identify the problem in client code. Validation should occur as soon as possible in the graph lifecycle. It's much easier to catch an issue at the setup location rather than during deferred execution.
Finally, this class is designed for user validation, not for internal graph validation. In other words, if the user can break the graph externally via the client-facing API, this validation layer should catch it. Any internal validation of the graph state should be kept out of this class in order to provide a clear and modular location to extend the validation layer as well as clearly separate the graph implementation details from events in the graph.
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRDGUserValidation
(
const FRDGUserValidation& |
|||
FRDGUserValidation
(
FRDGAllocator& Allocator, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | RemoveUnusedWarning
(
FRDGViewableResource* Resource |
Removes the 'produced but not used' warning from the requested resource. | |
| void | SetAllowRHIAccess
(
const FRDGPass* Pass, |
Traverses all resources in the pass and marks whether they are externally accessible by user pass implementations. | |
| bool | TryMarkForClobber
(
FRDGViewableResource* Resource |
Attempts to mark a resource for clobbering. If already marked, returns false. | |
| void | ValidateAddPass
(
const void* ParameterStruct, |
Tracks and validates the addition of a new pass to the graph. | |
| void | ValidateAddPass
(
const FRDGEventName& Name, |
Tracks and validates the addition of a new pass to the graph. | |
| void | ValidateAddPass
(
const FRDGPass* Pass, |
Tracks and validates the addition of a new pass to the graph. | |
| void | ValidateAddSubresourceAccess
(
FRDGViewableResource* Resource, |
||
| void | ValidateConvertToExternalResource
(
FRDGViewableResource* Resource |
||
| void | ValidateConvertToExternalUniformBuffer
(
FRDGUniformBuffer* UniformBuffer |
||
| void | ValidateCreateBuffer
(
const FRDGBufferDesc& Desc, |
||
| void | ValidateCreateBuffer
(
FRDGBufferRef Buffer |
||
| void | ValidateCreateSRV
(
const FRDGBufferSRVDesc& Desc |
||
| void | ValidateCreateSRV
(
FRDGTextureSRVRef SRV |
||
| void | ValidateCreateSRV
(
const FRDGTextureSRVDesc& Desc |
||
| void | ValidateCreateSRV
(
FRDGBufferSRVRef SRV |
||
| void | ValidateCreateTexture
(
const FRDGTextureDesc& Desc, |
Tracks and validates inputs into resource creation functions. | |
| void | ValidateCreateTexture
(
FRDGTextureRef Texture |
Tracks and validates the creation of a new externally created / registered resource instances. | |
| void | ValidateCreateUAV
(
const FRDGTextureUAVDesc& Desc |
||
| void | ValidateCreateUAV
(
const FRDGBufferUAVDesc& Desc |
||
| void | ValidateCreateUAV
(
FRDGTextureUAVRef UAV |
||
| void | ValidateCreateUAV
(
FRDGBufferUAVRef UAV |
||
| void | ValidateCreateUniformBuffer
(
FRDGUniformBufferRef UniformBuffer |
||
| void | ValidateCreateUniformBuffer
(
const void* ParameterStruct, |
||
| void | Validate graph state before and after execution. | ||
| void | |||
| void | ValidateExecutePassBegin
(
const FRDGPass* Pass |
Validate pass state before and after execution. | |
| void | ValidateExecutePassEnd
(
const FRDGPass* Pass |
||
| void | ValidateExternalAccess
(
FRDGViewableResource* Resource, |
||
| void | ValidateExtractBuffer
(
FRDGBufferRef Buffer, |
||
| void | ValidateExtractTexture
(
FRDGTextureRef Texture, |
Validates a resource extraction operation. | |
| void | ValidateGetPooledBuffer
(
FRDGBufferRef Buffer |
||
| void | ValidateGetPooledTexture
(
FRDGTextureRef Texture |
||
| void | ValidateRegisterExternalBuffer
(
FRDGBufferRef Buffer |
||
| void | ValidateRegisterExternalBuffer
(
const TRefCountPtr< FRDGPooledBuffer >& ExternalPooledBuffer, |
||
| void | ValidateRegisterExternalTexture
(
FRDGTextureRef Texture |
||
| void | ValidateRegisterExternalTexture
(
const TRefCountPtr< IPooledRenderTarget >& ExternalPooledTexture, |
||
| void | ValidateSetAccessFinal
(
FRDGViewableResource* Resource, |
||
| void | ValidateUploadBuffer
(
FRDGBufferRef Buffer, |
||
| void | ValidateUploadBuffer
(
FRDGBufferRef Buffer, |
||
| void | ValidateUploadBuffer
(
FRDGBufferRef Buffer, |
||
| void | ValidateUploadBuffer
(
FRDGBufferRef Buffer, |
||
| void | ValidateUseExternalAccessMode
(
FRDGViewableResource* Resource, |
||
| void | ValidateUseInternalAccessMode
(
FRDGViewableResource* Resaource |