Defines an integer constant value, which should be loaded anytime a shader is set to a device.
| defi dst, integerValue0, integerValue1, integerValue2, integerValue3 |
|---|
| Vertex shader versions | 1_1 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
|---|---|---|---|---|---|---|
| defi | x | x | x | x | x |
The defi 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 API method SetVertexShaderConstantI.
There are two ways to set an integer constant in a shader.