Metodo ID3DXBaseEffect::GetPassDesc

Ottiene una descrizione del passaggio.

Sintassi

HRESULT GetPassDesc(
  [in]  D3DXHANDLE    hPass,
  [out] D3DXPASS_DESC *pDesc
);

Parametri

hPass [in]

Tipo: D3DXHANDLE

Handle pass. Vedere Handle (Direct3D 9).

pDesc [out]

Tipo: D3DXPASS_DESC*

Restituisce una descrizione del passaggio specificato. Vedere D3DXPASS_DESC.

Valore restituito

Tipo: HRESULT

Se il metodo ha esito positivo, il valore restituito viene S_OK. Se il metodo ha esito negativo, il valore restituito può essere D3DERR_INVALIDCALL.

Commenti

Nota

Se viene creato un effetto con D3DXFX_NOT_CLONEABLE, questo metodo restituirà puntatori NULL (in D3DXPASS_DESC) alle funzioni shader.

 

Requisiti

Requisito Valore
Intestazione
D3DX9Effect.h
Libreria
D3dx9.lib

Vedi anche

ID3DXBaseEffect