IDirect3DDevice9::GetSoftwareVertexProcessing method (d3d9.h)

Gets the vertex processing (hardware or software) mode.

Syntax

BOOL GetSoftwareVertexProcessing();

Return value

Type: BOOL

Returns TRUE if software vertex processing is set. Otherwise, it returns FALSE.

Remarks

An application can create a mixed-mode device to use both the software vertex processing and the hardware vertex processing. To switch between the two vertex processing modes in DirectX 8.x, use IDirect3DDevice9::SetRenderState with the render state D3DRS_SOFTWAREVERTEXPROCESSING and the appropriate BOOL argument. The drawback of the render state approach was the difficulty in defining the semantics for state blocks. Applications and the runtime had to do extra work and be careful while recording and playing back state blocks.

In Direct3D 9, use IDirect3DDevice9::SetSoftwareVertexProcessing instead. This new API is not recorded by StateBlocks.

Also refer to the notes for the D3DCREATE constants.

Requirements

Requirement Value
Target Platform Windows
Header d3d9.h (include D3D9.h)
Library D3D9.lib

See also

IDirect3DDevice9