?/TD>
Microsoft DirectX 9.0

if pred (Vertex Shader)


Start of an if...else...endif block, with the condition taken from the content of the predicate register.

Syntax

if [!]p0.replicateSwizzle

Where:

Remarks

Vertex shader versions1_12_02_x2_sw3_03_sw
if predxxxx

This instruction is used to skip a block of code, based on a channel of the predicate register. Each if_pred block must end with an else or endif instruction.

Restrictions include:

if_pred blocks can be nested. This counts to the total dynamic nesting depth along with if_comp blocks.

An if_pred block cannot straddle a loop block, it should be either completely inside it or surround it.

Instruction Information

Minimum operating systemWindows 98


© 2002 Microsoft Corporation. All rights reserved.