ClearUAVShader_T

Helper functions for running the clear replacement shader for specific resource types, values types and number of channels.

Windows
MacOS
Linux

References

Module

RenderCore

Header

/Engine/Source/Runtime/RenderCore/Public/ClearReplacementShaders.h

Include

#include "ClearReplacementShaders.h"

Syntax

template<EClearReplacementResourceType ResourceType, EClearReplacementValueType ValueType, uint32 NumChannels, bool bBarriers>
void ClearUAVShader_T
(
    FRHICommandList & RHICmdList,
    FRHIUnorderedAccessView * UAV,
    uint32 SizeX,
    uint32 SizeY,
    uint32 SizeZ,
    const typename TClearReplacementTypeSelector< ValueType >::Type(&) ClearValues,
    TFunctionRef< void *, const FShaderResourceParameter &, bool)> ResourceBindCallback
)

Remarks

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..

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss