Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

predicateBlock (HLSL)

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

Performs branching by using predicated exec blocks.

Syntax

[predicateBlock]

Parameters

None.

Scope

Applies to if statements.

Remarks

Use the predicateBlock attribute with the flatten attribute to specify exactly how to flatten a branch.

Examples

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

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

Community Additions

ADD
Show:
© 2015 Microsoft