Microsoft DirectX 8.0 (C++)

Vertex Shader Function

The function portion of a vertex shader defines the operations applied to each vertex. Only programmed vertex shaders have shader functions. Like declarations, shader functions are single dimensional arrays of DWORDs that form an ordered list of instructions to execute for each vertex. Each instruction is composed of multiple DWORDs.

The Direct3DX utility library supplies a set of functions to generate the standard DWORD tokens transmitted to the driver. For details, see Compiling a Vertex Shader.