Развернуть Свернуть

D3DDDIARG_SETPIXELSHADERCONST structure

The D3DDDIARG_SETPIXELSHADERCONST structure describes how to set the pixel shader constant registers.

Syntax


typedef struct _D3DDDIARG_SETPIXELSHADERCONST {
  UINT Register;
  UINT Count;
} D3DDDIARG_SETPIXELSHADERCONST;

Members

Register

[in] The index of the first pixel shader constant register whose value is set.

Count

[in] The number of constant registers to set and, therefore, the number of values in the array that is passed in the pRegisters parameter in the call to the user-mode display driver's SetPixelShaderConst, SetPixelShaderConstI, or SetPixelShaderConstB function.

Remarks

The Count member specifies the following values, depending on the structure type that is used in the call to the SetPixelShaderConst, SetPixelShaderConstI, or SetPixelShaderConstB function:

  • Four-element, single-precision float vectors for the D3DDDIARG_SETPIXELSHADERCONST structure in the SetPixelShaderConst call.

  • Four-integer vectors for the D3DDDIARG_SETPIXELSHADERCONSTI structure in the SetPixelShaderConstI call.

  • Boolean values for the D3DDDIARG_SETPIXELSHADERCONSTB structure in the SetPixelShaderConstB call.

The preceding structures are identical, as the following definitions show:


typedef D3DDDIARG_SETPIXELSHADERCONST D3DDDIARG_SETPIXELSHADERCONSTI;
typedef D3DDDIARG_SETPIXELSHADERCONST D3DDDIARG_SETPIXELSHADERCONSTB;

Requirements

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dumddi.h (include D3dumddi.h)

See also

SetPixelShaderConst
SetPixelShaderConstB
SetPixelShaderConstI

 

 

Send comments about this topic to Microsoft

Показ:
© 2014 Microsoft