?/TD>
Microsoft DirectX 9.0

defi (Vertex Shader)


Defines an integer constant value, which should be loaded anytime a shader is set to a device.

Syntax

defi dst, integerValue0, integerValue1, integerValue2, integerValue3

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
defixxxxx

The defi (Vertex Shader) instruction defines an integer 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 the application programming interface (API) method SetVertexShaderConstantI.

There are two ways to set an integer constant in a shader.

  1. Use defi (Vertex Shader) to define the integer constant vector directly inside a shader.
  2. Use the API methods to set a constant.

Instruction Information

Minimum operating systemWindows 98

Related Topics



© 2002 Microsoft Corporation. All rights reserved.