Condividi tramite


struttura D3DXPASS_DESC

Descrive un passaggio per un oggetto effetto.

Sintassi

typedef struct D3DXPASS_DESC {
  LPCSTR      Name;
  UINT        Annotations;
  const DWORD *pVertexShaderFunction;
  const DWORD *pPixelShaderFunction;
} D3DXPASS_DESC, *LPD3DXPASS_DESC;

Members

Nome

Tipo: LPCSTR

Valore stringa utilizzato per il passaggio.

Annotazioni

Tipo: UINT

Le annotazioni sono dati specifici dell'utente che possono essere associati a qualsiasi tecnica, passaggio o parametro. Vedere Aggiungere informazioni ai parametri dell'effetto with_Annotations.

pVertexShaderFunction

Tipo: const DWORD*

Puntatore alla funzione vertex shader. Se viene creato un effetto con D3DXFX_NOT_CLONEABLE, questa struttura restituirà un puntatore NULL quando viene chiamato da GetPassDesc.

pPixelShaderFunction

Tipo: const DWORD*

Puntatore alla funzione pixel shader. Se viene creato un effetto con D3DXFX_NOT_CLONEABLE, questa struttura restituirà un puntatore NULL quando viene chiamato da GetPassDesc.

Requisiti

Requisito Valore
Intestazione
D3dx9effect.h

Vedi anche

Strutture degli effetti

GetPassDesc