?/TD> |
Microsoft DirectX 9.0 |
Start of an if...else...endif block.
if boolRegister |
---|
Where:
Pixel shader versions | 1_1 | 1_2 | 1_3 | 1_4 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|---|---|---|---|---|---|---|---|---|
if | x | x | x | x |
If the source Boolean register in the if statement is true, the code enclosed by the if statement and the matching else is run. Otherwise, the code enclosed by the else...endif statements is run. This instruction consumes one instruction slot.
An if block can be nested.
An if block cannot straddle a loop block.
This instruction provides conditional static flow control.
defb b3, true if b3 // Instructions to run if b3 is nonzero. else // Instructions to run otherwise. endif
Minimum operating system | Windows 98 |
---|