Skip to content

Latest commit

 

History

History
97 lines (75 loc) · 4.29 KB

nf-d3d9-idirect3ddevice9-createvertexshader.md

File metadata and controls

97 lines (75 loc) · 4.29 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3d9.IDirect3DDevice9.CreateVertexShader
IDirect3DDevice9::CreateVertexShader (d3d9.h)
The IDirect3DDevice9::CreateVertexShader method (d3d9.h) creates a vertex shader.
42a56eab-a68f-232a-b21e-cc24c0b7b58d
CreateVertexShader
CreateVertexShader method [Direct3D 9]
CreateVertexShader method [Direct3D 9]
IDirect3DDevice9 interface
IDirect3DDevice9 interface [Direct3D 9]
CreateVertexShader method
IDirect3DDevice9.CreateVertexShader
IDirect3DDevice9::CreateVertexShader
d3d9helper/IDirect3DDevice9::CreateVertexShader
direct3d9.idirect3ddevice9__createvertexshader
direct3d9\idirect3ddevice9__createvertexshader.htm
direct3d9
VS|directx_sdk|~\idirect3ddevice9__createvertexshader.htm
08/10/2022
42a56eab-a68f-232a-b21e-cc24c0b7b58d, CreateVertexShader, CreateVertexShader method [Direct3D 9], CreateVertexShader method [Direct3D 9],IDirect3DDevice9 interface, IDirect3DDevice9 interface [Direct3D 9],CreateVertexShader method, IDirect3DDevice9.CreateVertexShader, IDirect3DDevice9::CreateVertexShader, d3d9helper/IDirect3DDevice9::CreateVertexShader, direct3d9.idirect3ddevice9__createvertexshader
d3d9.h
D3D9.h
Windows
D3D9.lib
Windows
19H1
IDirect3DDevice9::CreateVertexShader
d3d9/IDirect3DDevice9::CreateVertexShader
c++
APIRef
kbSyntax
COM
D3D9.lib
D3D9.dll
IDirect3DDevice9.CreateVertexShader

IDirect3DDevice9::CreateVertexShader

-description

Creates a vertex shader.

-parameters

-param pFunction [in]

Type: const DWORD*

Pointer to an array of tokens that represents the vertex shader, including any embedded debug and symbol table information.

-param ppShader [out, retval]

Type: IDirect3DVertexShader9**

Pointer to the returned vertex shader interface (see IDirect3DVertexShader9).

-returns

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be one of the following: D3DERR_INVALIDCALL, D3DERR_OUTOFVIDEOMEMORY, E_OUTOFMEMORY.

-remarks

When a device is created, IDirect3D9::CreateDevice uses the behavior flag to determine whether to process vertices in hardware or software. There are three possibilities:

  • Process vertices in hardware by setting D3DCREATE_HARDWARE_VERTEXPROCESSING.
  • Process vertices in software by setting D3DCREATE_SOFTWARE_VERTEXPROCESSING.
  • Process vertices in either hardware or software by setting D3DCREATE_MIXED_VERTEXPROCESSING. To switch a mixed-mode device between software and hardware processing, use IDirect3DDevice9::SetSoftwareVertexProcessing.
For an example using D3DXCompileShader, see HLSLwithoutEffects Sample.

-see-also

IDirect3DDevice9