A define instruction sets a constant register value.
The value does not change while the shader is running. Regardless of where it is declared in shader assembly code, it is valid for linked objects in their entirety.
You cannot set multiple values for the same register within the same set of linked objects. In addition, you cannot use define instructions on registers already specified by #pragma bind_symbol in the set of linked objects.
def
|
Define floating point constants | Sets the value of a floating-point constant register. |
|---|---|---|
defb
|
Define boolean constants | Sets the value of a Boolean register. |
defi
|
Define integer constants | Sets the values of integer registers. |
CONFIDENTIAL