ID3D11DeviceContext::ClearUnorderedAccessViewUint Method

Clears an unordered access resource with bit-precise values.

Syntax

public:
void ClearUnorderedAccessViewUint(
         ID3D11UnorderedAccessView *pUnorderedAccessView,
         const UINT Values[4]
)  

Parameters

pUnorderedAccessView
Type: ID3D11UnorderedAccessView *

[in] The ID3D11UnorderedAccessView to clear.

Values
Type: UINT 

[in] Values to copy to corresponding channels, see remarks.

Return value

None.

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.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11DeviceContext

ID3D11DeviceContext Members