Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Mark the next instruction as having a label index.
Syntax
label l# |
---|
where # identifies the label number.
For ps_2_x, the label number must be between 0 and 15.
For ps_2_sw, ps_3_0, and ps_3_sw, the label number must be between 0 and 2047.
Remarks
Pixel shader versions | 1_1 | 1_2 | 1_3 | 1_4 | 2_0 | 2_x | 2_sw | 3_0 | 3_sw |
---|---|---|---|---|---|---|---|---|---|
label | x | x | x | x |
This instruction defines a label located at the next shader instruction. The label instruction can only be present directly after a ret instruction (which defines the end of the previous subroutine or main program).
Related topics