Microsoft DirectX 8.1 (C++) |
Sets the current vertex shader to a previously created vertex shader or to a flexible vertex format (FVF) fixed function shader.
HRESULT SetVertexShader( DWORD Handle );
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value can be D3DERR_INVALIDCALL.
The effect of using an FVF code in place of the handle is to enable a fixed-function vertex shader, with an implicit declaration that matches the FVF code contents read from stream zero. Only stream zero is referenced when an FVF-specified shader is bound to the device.
Header: Declared in D3d8.h.
Import Library: Use D3d8.lib.