case (sm4 - asm)
TOC
Collapse the table of content
Expand the table of content

case (sm4 - asm)

A label in a switch instruction.

case [32-bit immediate]

 

Remarks

Because falling through cases is valid only if there is no code added, multiple cases (including default) can share the same code block.

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

 

 

 

Show:
© 2016 Microsoft