Export (0) Print
Expand All

flatten (HLSL)

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

Performs branching using conditional move instructions.

Syntax

[flatten]

Parameters

None.

Scope

Applies to if statements.

Examples

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

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

Community Additions

ADD
Show:
© 2014 Microsoft