struttura D3DDDIARG_SETPIXELSHADERCONST (d3dumddi.h)

La struttura D3DDDIARG_SETPIXELSHADERCONST descrive come impostare i registri costanti del pixel shader.

Sintassi

typedef struct _D3DDDIARG_SETPIXELSHADERCONST {
  [in] UINT Register;
  [in] UINT Count;
} D3DDDIARG_SETPIXELSHADERCONST;

Members

[in] Register

Indice del primo registro costante pixel shader il cui valore è impostato.

[in] Count

Numero di registri costanti da impostare e, pertanto, il numero di valori nella matrice passati nel parametro pRegisters nella chiamata alla funzione SetPixelShaderConstConst del driver di visualizzazione in modalità utente, SetPixelShaderConstI o SetPixelShaderConstB .

Commenti

Il membro Count specifica i valori seguenti, a seconda del tipo di struttura utilizzato nella chiamata alla funzione SetPixelShaderConst, SetPixelShaderConstI o SetPixelShaderConstB :

  • Vettori float a quattro elementi e precisione singola per la struttura D3DDDIARG_SETPIXELSHADERCONST nella chiamata SetPixelShaderConst .
  • Vettori a quattro interi per la struttura D3DDDIARG_SETPIXELSHADERCONSTI nella chiamata SetPixelShaderConstI .
  • Valori booleani per la struttura D3DDDIARG_SETPIXELSHADERCONSTB nella chiamata SetPixelShaderConstB .
Le strutture precedenti sono identiche, come illustrato nelle definizioni seguenti:
typedef D3DDDIARG_SETPIXELSHADERCONST D3DDDIARG_SETPIXELSHADERCONSTI;
typedef D3DDDIARG_SETPIXELSHADERCONST D3DDDIARG_SETPIXELSHADERCONSTB;

Requisiti

Requisito Valore
Client minimo supportato Disponibile in Windows Vista e versioni successive dei sistemi operativi Windows.
Intestazione d3dumddi.h (include D3dumddi.h)

Vedi anche

SetPixelShaderConst

SetPixelShaderConstB

SetPixelShaderConstI