callnz pred - ps

Call with a predicate, if not zero. Performs a conditional call to the instruction marked by the label index. Predication uses a Boolean value to determine whether of not to perform the instruction.

Syntax

callnz l#, [!]p0.{x|y|z|w}

 

Where:

  • where l# is a label - ps marking the beginning of the subroutine to be called.
  • [!] is an optional negate modifier.
  • p0 is the predicate register. See Predicate Register.
  • {x|y|z|w} is the required replicate swizzle on p0.

Remarks

Pixel shader versions1_11_21_31_42_02_x2_sw3_03_sw
callnz predxxxx

 

This instruction does the following:



if (specified register component is not zero)
{
    Push address of the next instruction to the return address stack
    Continue execution from the instruction marked by the label
}


Related topics

Pixel Shader Instructions

 

 

Show: