ID3DX11SegmentedScan::SegScan method

Performs a segmented scan of a sequence.

Syntax

HRESULT SegScan(
  D3DX11_SCAN_DATA_TYPE     ElementType,
  D3DX11_SCAN_OPCODE        OpCode,
  UINT                      ElementScanSize,
  ID3D11UnorderedAccessView *pSrc,
  ID3D11UnorderedAccessView *pSrcElementFlags,
  ID3D11UnorderedAccessView *pDst
);

Parameters

ElementType

Type: D3DX11_SCAN_DATA_TYPE

The type of element in the sequence. See D3DX11_SCAN_DATA_TYPE for more information.

OpCode

Type: D3DX11_SCAN_OPCODE

The binary operation to perform. See D3DX11_SCAN_OPCODE for more information.

ElementScanSize

Type: UINT

Size of scan in elements.

pSrc

Type: ID3D11UnorderedAccessView*

Input sequence on the device. Set pSrc and pDst to the same value for in-place scans.

pSrcElementFlags

Type: ID3D11UnorderedAccessView*

Compact array of bits with one bit per element of pSrc. A set value indicates the start of a new segment.

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

   
Target Platform Windows
Header d3dcsx.h
Library D3dcsx.lib

See also

ID3DX11SegmentedScan