D3D10StateBlockMaskEnableCapture function

Enable a range of state values in a state block mask.

Syntax


HRESULT D3D10StateBlockMaskEnableCapture(
  _Inout_ D3D10_STATE_BLOCK_MASK   *pMask,
  _In_    D3D10_DEVICE_STATE_TYPES StateType,
  _In_    UINT                     RangeStart,
  _In_    UINT                     RangeLength
);

Parameters

pMask [in, out]

Type: D3D10_STATE_BLOCK_MASK*

A state block mask (see D3D10_STATE_BLOCK_MASK).

StateType [in]

Type: D3D10_DEVICE_STATE_TYPES

The type of device state to enable (see D3D10_DEVICE_STATE_TYPES.

RangeStart [in]

Type: UINT

The lower end of the range of values to set to true.

RangeLength [in]

Type: UINT

The upper end of the range of values to set to true.

Return value

Type: HRESULT

This method returns one of the following Direct3D 10 Return Codes.

Remarks

This is an example of how to call this function. It create a mask that can capture and apply to geometry-shader samplers in slots 2 ~ 13.



D3D10_STATE_BLOCK_MASK stateBlockMask;
D3D10StateBlockMaskEnableCapture(&stateBlockMask, 
                                 D3D10_DST_GS_SAMPLERS, 
                                 2, 13);


Requirements

Header

D3D10Effect.h

Library

D3D10.lib

DLL

D3D10.dll

See also

Effect Functions
Core Functions

 

 

Show: