title | description | ms.assetid | ms.topic | ms.date | topic_type | api_name | api_type | api_location | |
---|---|---|---|---|---|---|---|---|---|
dcl_output_sgv (sm4 - asm) |
dcl\_output\_sgv (sm4 - asm) |
0723541e-a97d-4b31-aaba-e7d1172137a6 |
reference |
05/31/2018 |
|
Declares an output register that contains a system-value parameter.
dcl_output_sgv oN[.mask], systemValueName |
---|
Item | Description |
---|---|
oN |
[in] An output data register;
|
systemValueName |
[in] The system-value name which is a string (see system-value semantics) without the "SV_" prefix. |
This instruction applies to the following shader stages:
Vertex Shader | Geometry Shader | Pixel Shader |
---|---|---|
x |
This instruction is included to aid in debugging a shader in assembly; you cannot author a shader in assembly language using Shader Model 4.
Here is an example.
dcl_output_sgv o4.x, primitiveID
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 |