predicate (HLSL)
Note
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 ); }
See Also
Concepts
HLSL Attributes (Xbox 360)
Attribute Syntax
Attribute Categories