callnz pred - ps

使用谓词调用 (如果不是零)。 对标签索引标记的指令执行条件调用。 Predication 使用布尔值来确定 是否不执行指令。

语法

callnz l#, [!]P。{x|y|z|w}

 

其中:

  • 其中 l# 是一个 标签 - ps ,标记要调用的子例程的开头。
  • [!]是可选的否定修饰符。
  • p0 是谓词寄存器。 请参阅 谓词注册
  • {x|y|z|w} 是 p0 上必需的复制重排。

备注

像素着色器版本 1_1 1_2 1_3 1_4 2_0 2_x 2_sw 3_0 3_sw
callnz pred x x x x

 

此指令执行以下操作:

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
}

像素着色器说明