Export (0) Print
Expand All

predicate (HLSL)

Bb313984.note(en-us,XNAGameStudio.31).gifNote
This HLSL attribute is available only when developing for the Xbox 360.

Performs branching by using predication.

Syntax

[predicate]

Parameters

None.

Scope

Applies to if statements.

Remarks

Instructions are individually predicated.

Examples

The following HLSL code snippet shows how to apply the predicate attribute.

[predicate]
if( a )
{
  a = sqrt( a );
}
    

Community Additions

ADD
Show:
© 2015 Microsoft