dcl_tgsm_raw (sm5 - asm)
Declare a reference to a region of shared memory space available to the compute shader s thread group.
dcl_tgsm_raw g#, byteCount |
---|
Item | Description |
---|---|
g# |
[in] A reference to a block of size byteCount of untyped shared memory. |
byteCount |
[in] Must be a multiple of 4. |
Remarks
The total storage for all g# must be <= the amount of shared memory available per thread group, which is 32kB.
In an extreme case, you can declare 8192 total g# s, each with a byteCount of 4.
In the opposite extreme, you can declare a single g# with a byteCount of 32768.
Note
cs_4_0 and cs_4_1 supports dcl_tgsm_structured, but not dcl_tgsm_raw.
This instruction applies to the following shader stages:
Vertex | Hull | Domain | Geometry | Pixel | Compute |
---|---|---|---|---|---|
X |
Minimum Shader Model
This instruction is supported in the following shader models:
Shader Model | Supported |
---|---|
Shader Model 5 | yes |
Shader Model 4.1 | no |
Shader Model 4 | no |
Shader Model 3 (DirectX HLSL) | no |
Shader Model 2 (DirectX HLSL) | no |
Shader Model 1 (DirectX HLSL) | no |