continuec (sm4 - asm)
Conditionally continues execution at the beginning of the current loop.
continuec{_z|_nz} src0.select_component |
---|
Term | Description |
---|---|
src0 |
[in] The component against which to test the condition. |
Remarks
continuec can be used only inside a loop or endloop.
The following example shows how to use the continuec instruction.
loop
if_na r0.x
break
endif
continuec_z r1.x // if all bits of r1.x are zero then
// continue at beginning of loop.
...
continuec_nz r3.y // if any bit in r3.y is set then
// continue at beginning of loop.
...
endloop
The token format contains the offset of the corresponding loop instruction in the Shader as a convenience.
This instruction applies to the following shader stages:
Vertex Shader | Geometry Shader | Pixel Shader |
---|---|---|
x | x | x |
Minimum Shader Model
This function is supported in the following shader models.
Shader Model | Supported |
---|---|
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 |