次の方法で共有


IDirect3DDevice8::SetVertexShader

This method 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
);

Parameters

  • Handle
    [in] Handle to a vertex shader, specifying the vertex shader to set. The value for this parameter must be an FVF code. An FVF code is a combination of flexible vertex format flags.

Return Values

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

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.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: D3d8.h.
Link Library: D3d8.lib.

See Also

IDirect3DDevice8::GetVertexShader | IDirect3DDevice8

 Last updated on Thursday, April 08, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.