Export (0) Print
Expand All
Expand Minimize

endif (sm4 - asm)

Ends an if statement.

endif

 

Remarks

The following example shows how to use the endif instruction.


                if     // any of the various forms of if* statements
                   ...
                else   // (optional)
                   ...
                endif

The token format contains the offset of the corresponding if instruction in the Shader as a convenience.

This instruction applies to the following shader stages:

Vertex ShaderGeometry ShaderPixel Shader
xxx

 

Minimum Shader Model

This function is supported in the following shader models.

Shader ModelSupported
Shader Model 5 yes
Shader Model 4.1 yes
Shader Model 4 yes
Shader Model 3 (DirectX HLSL) no
Shader Model 2 (DirectX HLSL) no
Shader Model 1 (DirectX HLSL) no

 

 

 

Community Additions

ADD
Show:
© 2014 Microsoft