Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/RenderGraphUtils.h |
Include |
#include "RenderGraphUtils.h" |
Source |
/Engine/Source/Runtime/RenderCore/Private/RenderGraphUtils.cpp |
FRDGTextureRef RegisterExternalTextureWithFallback
(
FRDGBuilder & GraphBuilder,
const TRefCountPtr< IPooledRenderTarget > & ExternalPooledTexture,
const TRefCountPtr< IPooledRenderTarget > & FallbackPooledTexture,
ERenderTargetTexture ExternalTexture,
ERenderTargetTexture FallbackTexture
)
Register external texture with fallback if the resource is invalid.
CAUTION: use this function very wisely. It may actually remove shader parameter validation failure when a pass is actually trying to access a resource not yet or no longer available.