ID3D11ComputeContextX::CSSetUnorderedAccessViews Method

Sets an array of views for an unordered resource. Uses fast resource semantics.

Syntax

public:
void CSSetUnorderedAccessViews(
         UINT StartSlot,
         UINT NumUAVs,
         ID3D11UnorderedAccessView * const *ppUnorderedAccessViews,
         const UINT *pUAVInitialCounts
)  

Parameters

StartSlot
Type: UINT 

[in] Index of the first element in the zero-based array to begin setting (ranges from 0 to D3D11_1_UAV_SLOT_COUNT - 1). D3D11_1_UAV_SLOT_COUNT is defined as 64.

NumUAVs
Type: UINT 

[in] Number of views to set (ranges from 0 to D3D11_1_UAV_SLOT_COUNT - StartSlot).

ppUnorderedAccessViews
Type: ID3D11UnorderedAccessView * const *

[in, optional] A pointer to an array of ID3D11UnorderedAccessView pointers to be set by the method.

pUAVInitialCounts
Type: UINT *

[in, optional] An array of append and consume buffer offsets. A value of -1 indicates to keep the current offset. Any other values set the hidden counter for that appendable and consumable UAV. pUAVInitialCounts is only relevant for UAVs that were created with either D3D11_BUFFER_UAV_FLAG_APPEND or D3D11_BUFFER_UAV_FLAG_COUNTER specified when the UAV was created; otherwise, the argument is ignored.

Return value

None.

Remarks

UAV counters are not supported.

Requirements

Header: Declared in d3d11_x.h.

Library: Use d3d11_x.lib.

See also

Reference

ID3D11ComputeContextX Interface

ID3D11ComputeContextX Members