|Microsoft DirectX 9.0|
Defines vertex shader constants.
|def dst, value|
|Vertex shader versions||1_1||2_0||2_x||2_sw||3_0||3_sw|
The def instruction defines a shader constant whose value is loaded anytime a shader is set to a device. These are called immediate constants. Immediate constants take precedence over constants set by application programming interface (API) methods SetVertexShaderConstantF.
There are two ways to set a constant in a shader.
def (Vertex Shader) can only define floating-point constants.
|Minimum operating system||Windows 98|