branch (HLSL)

Note

This HLSL attribute is available only when developing for the Xbox 360.

Performs branching using control flow instructions.

Syntax

[branch]

Parameters

None

Scope

Applies to if statements.

Examples

The following HLSL code snippet demonstrates how to apply the branch attribute.

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

See Also

Concepts

HLSL Attributes (Xbox 360)
Attribute Syntax
Attribute Categories

Reference

HLSL Attributes Reference (Xbox 360)