Constant instructions
Direct3D 8 - Pixel Shader - Constant Instructions (Microsoft) (Source 2)
Last edited 2026-01-27
This section contains reference information for the pixel shader version ps.1.x instructions.
There are several types of pixel shader instructions, as shown in the following table.
The meaning of colors in the Type column:
|
Color |
Description |
|
Green |
The instruction works in Fusion. |
|
Yellow |
The instruction has not been confirmed to work in Fusion. |
|
Red |
The instruction does not work in Fusion. |
Constant instructions
|
Type |
Instruction |
Description |
Instruction slots |
ps.1.0 |
ps.1.1 |
ps.1.2 |
ps.1.3 |
ps.1.4 |
Note |
|
asm |
Define constants |
0 |
Yes |
Yes |
Yes |
Yes |
Yes |
Declares a new 4-dimensional constant vector/color. |
Created with the Personal Edition of HelpNDoc: 5 Reasons Why a Help Authoring Tool is Better than Microsoft Word for Documentation