| IRHIComputeContext::RHIClearUAVFloat()
|
Module |
|
Header |
/Engine/Source/Runtime/NullDrv/Public/NullRHI.h |
Include |
#include "NullRHI.h" |
virtual void RHIClearUAVFloat
(
FRHIUnorderedAccessView * UnorderedAccessViewRHI,
const FVector4 & Values
)
Clears a UAV to the multi-channel floating point value provided. Should only be called on UAVs with a floating point format, or on structured buffers. Structured buffers are treated as a regular R32_UINT buffer during the clear operation, and the Values.X component is copied directly into the buffer without any format conversion. (Y,Z,W) of Values is ignored. Typed floating point buffers undergo standard format conversion during the write operation. The conversion is determined by the format of the UAV.
The UAV is expected to be in a writable state, as this function has equivalent semantics to dispatching a compute shader. This function does not perform any implicit transitions.
Parameter |
Description |
---|---|
UnorderedAccessViewRHI |
The UAV to clear. |
Values |
The values to clear the UAV to, one component per channel (XYZW = RGBA). Channels not supported by the UAV are ignored. |