Microsoft DirectX 8.0 (C++)

Parameter Types

Parameter declarations have the following syntax, where type is a valid type, and id is a valid Four-Character Codes (FOURCC). If a const value is provided as an initial value for the parameter, its type must match type.

{type} {id};
{type} {id} = {const};

The following table lists all of the valid parameter types that are used for effect file parameter declarations along with a sample.

Type Sample
DWORD
DWORD minVertices;
FLOAT
FLOAT fRotationAdvances;
VECTOR
VECTOR vecPoint;
MATRIX
MATRIX matIndentity;
TEXTURE
TEXTURE tex1;
VERTEXSHADER
VERTEXSHADER v1;
PIXELSHADER
PIXELSHADER p1;