Skip to content

Latest commit

 

History

History
76 lines (43 loc) · 1.62 KB

callnz-pred---vs.md

File metadata and controls

76 lines (43 loc) · 1.62 KB
title description ms.assetid ms.topic ms.date topic_type api_name api_type api_location
callnz pred - vs
Call if not zero, with a predicate. 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.
3417f3e3-7e73-4131-8069-09c0de1469a7
reference
05/31/2018
apiref

callnz pred - vs

Call if not zero, with a predicate. 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:

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

Remarks

Vertex shader versions 1_1 2_0 2_x 2_sw 3_0 3_sw
callnz pred x x x x

 

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.
}

This instruction consumes one vertex shader instruction slot.

Related topics

Vertex Shader Instructions