Clears an unordered access resource with bit-precise values.
public:
void ClearUnorderedAccessViewUint(
ID3D11UnorderedAccessView *pUnorderedAccessView,
const UINT Values[4]
)
pUnorderedAccessView
Type: ID3D11UnorderedAccessView *
[in] The ID3D11UnorderedAccessView to clear.
Values
Type: UINT
[in] Values to copy to corresponding channels, see remarks.
This API copies the lower ni bits from each array element i to the corresponding channel, where ni is the number of bits in the ith channel of the resource format (for example, R8G8B8_FLOAT has 8 bits for the first 3 channels). This works on any UAV with no format conversion. For a raw or structured buffer view, only the first array element value is used.
Like Dispatch and DispatchIndirect in this interface, the title must insert appropriate synchronization and/or hazard tracking around this method if needed.
Header: Declared in d3d11_x.h.
Library: Use d3d11_x.lib.