Microsoft DirectX 8.0 (C++)

Version and Constant Definition Instructions

The Direct3DX pixel shader assembler provides instructions to identify the type and version of the shader and to define constants to use with the pixel shader.

def Define Constants
ps Version and Type

A version instruction is required to be at the beginning of each shader.

Note that constant definition instructions must occur after version instructions and before all other instructions.