ID3DX11SegmentedScan::SegScan method (d3dcsx.h)
Performs a segmented scan of a sequence.
Syntax
HRESULT SegScan(
[in] D3DX11_SCAN_DATA_TYPE ElementType,
[in] D3DX11_SCAN_OPCODE OpCode,
[in] UINT ElementScanSize,
[in] ID3D11UnorderedAccessView *pSrc,
[in] ID3D11UnorderedAccessView *pSrcElementFlags,
[in] ID3D11UnorderedAccessView *pDst
);
Parameters
[in] ElementType
Type: D3DX11_SCAN_DATA_TYPE
The type of element in the sequence. See D3DX11_SCAN_DATA_TYPE for more information.
[in] OpCode
Type: D3DX11_SCAN_OPCODE
The binary operation to perform. See D3DX11_SCAN_OPCODE for more information.
[in] ElementScanSize
Type: UINT
Size of scan in elements.
[in] pSrc
Type: ID3D11UnorderedAccessView*
Input sequence on the device. Set pSrc and pDst to the same value for in-place scans.
[in] pSrcElementFlags
Type: ID3D11UnorderedAccessView*
Compact array of bits with one bit per element of pSrc. A set value indicates the start of a new segment.
[in] pDst
Type: ID3D11UnorderedAccessView*
Output sequence on the device.
Return value
Type: HRESULT
Returns one of the return codes described in the topic Direct3D 11 Return Codes.
Remarks
You must point the parameters pSrc and pDst to typed buffers (and not to raw or structured buffers). For information about buffer types, see Types of Resources. The format of these typed buffers must be DXGI_FORMAT_R32_FLOAT, DXGI_FORMAT_R32_UINT, or DXGI_FORMAT_R32_INT. In addition, the format of these typed buffers must match the scan data type that you specify in the ElementType parameter. For example, if the scan data type is D3DX11_SCAN_DATA_TYPE_UINT, the buffer formats must be DXGI_FORMAT_R32_UINT.
The format of the resource view to which the pSrcElementFlags parameter points must be DXGI_FORMAT_R32_UINT.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3dcsx.h |
Library | D3dcsx.lib |