Funzione D3D10StateBlockMaskEnableCapture (d3d10effect.h)
Abilitare un intervallo di valori di stato in una maschera di blocco di stato.
Sintassi
HRESULT D3D10StateBlockMaskEnableCapture(
[in, out] D3D10_STATE_BLOCK_MASK *pMask,
[in] D3D10_DEVICE_STATE_TYPES StateType,
[in] UINT RangeStart,
[in] UINT RangeLength
);
Parametri
[in, out] pMask
Tipo: D3D10_STATE_BLOCK_MASK*
Maschera di blocco di stato (vedere D3D10_STATE_BLOCK_MASK).
[in] StateType
Tipo: D3D10_DEVICE_STATE_TYPES
Tipo di stato del dispositivo da abilitare (vedere D3D10_DEVICE_STATE_TYPES.
[in] RangeStart
Tipo: UINT
Estremità inferiore dell'intervallo di valori da impostare su true.
[in] RangeLength
Tipo: UINT
Estremità superiore dell'intervallo di valori da impostare su true.
Valore restituito
Tipo: HRESULT
Questo metodo restituisce uno dei codici restituiti Direct3D 10 seguenti.
Commenti
Questo è un esempio di come chiamare questa funzione. Crea una maschera in grado di acquisire e applicare ai campionatori geometry-shader negli slot 2 ~ 13.
D3D10_STATE_BLOCK_MASK stateBlockMask;
D3D10StateBlockMaskEnableCapture(&stateBlockMask,
D3D10_DST_GS_SAMPLERS,
2, 13);
Requisiti
Requisito | Valore |
---|---|
Piattaforma di destinazione | Windows |
Intestazione | d3d10effect.h |
Libreria | D3D10.lib |
DLL | D3D10.dll |