Module |
|
Header |
/Engine/Source/Runtime/RenderCore/Public/ClearReplacementShaders.h |
Include |
#include "ClearReplacementShaders.h" |
template<EClearReplacementResourceType ResourceType, EClearReplacementValueType ValueType, uint32 NumChannels, bool bBarriers>
void ClearUAVShader_T
(
FRHIComputeCommandList & RHICmdList,
FRHIUnorderedAccessView * UAV,
uint32 SizeX,
uint32 SizeY,
uint32 SizeZ,
const typename TClearReplacementTypeSelector< ValueType >::Type(&) ClearValues,
TFunctionRef< void *, const FShaderResourceParameter &, bool)> ResourceBindCallback
)
Helper functions for running the clear replacement shader for specific resource types, values types and number of channels. Can be used from inside RHIs via FRHICommandList_RecursiveHazardous. ResourceBindCallback is provided to allow the RHI to override how the UAV resource is bound to the underlying platform context..