Metodo IDirect3DDevice9::SetVertexShader (d3d9helper.h)

Imposta il vertex shader.

Sintassi

HRESULT SetVertexShader(
  [in] IDirect3DVertexShader9 *pShader
);

Parametri

[in] pShader

Tipo: IDirect3DVertexShader9*

Interfaccia vertex shader. Per altre informazioni, vedere IDirect3DVertexShader9.

Valore restituito

Tipo: HRESULT

Se il metodo ha esito positivo, il valore restituito è D3D_OK. Se il metodo ha esito negativo, il valore restituito può essere D3DERR_INVALIDCALL.

Commenti

Per impostare un vertex shader a funzione fissa (dopo aver impostato un vertex shader programmabile), chiamare IDirect3DDevice9::SetVertexShader(NULL) per rilasciare lo shader programmabile e quindi chiamare IDirect3DDevice9::SetFVF con il formato vertex a funzione fissa.

Requisiti

Requisito Valore
Piattaforma di destinazione Windows
Intestazione d3d9helper.h (include D3D9.h)
Libreria D3D9.lib

Vedi anche

IDirect3DDevice9

IDirect3DDevice9::GetVertexShader