HLSL Attributes Reference (Xbox 360)
Contains reference information about high-level shader language (HLSL) attributes. The following HLSL attributes are implemented.
| Attribute | Description |
|---|---|
| branch | Performs branching. |
| call | Prevents inlining of a function. |
| flatten | Performs branching. |
| ifAll | Executes the conditional part of an if statement when the condition is true for all threads on which the current shader is running. |
| ifAny | Executes the conditional part of an if statement when the condition is true for any thread on which the current shader is running. |
| isolate | Optimizes the specified HLSL code independently of the surrounding code. |
| loop | Gives preference to flow control constructs. |
| maxexports | Specifies the maximum number of export instructions that will execute along any path from the entry point to an exit. |
| maxInstructionCount | Sets the maximum number of instructions available to a shader. |
| maxtempreg | Restricts temporary register usage to the number of registers specified. Generates a compiler error if unsuccessful. |
| noExpressionOptimizations | Avoids optimization of expressions. |
| predicate | Performs branching by using predication. |
| predicateBlock | Performs branching by using predicated exec blocks. |
| reduceTempRegUsage | Restricts temporary register usage to the number of registers specified. Generates a compiler warning if unsuccessful. |
| removeUnusedInputs | Removes unused interpolator inputs from pixel shaders. |
| sampreg | Sets the ranges of pixel and vertex sampler registers used by the compiler. |
| unroll | Avoids flow control constructs. |
| unused | Suppresses warnings about unused shader parameters. |