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|
[in] A reference to a block of size byteCount of untyped shared memory.
[in] Must be a multiple of 4.
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.
This instruction applies to the following shader stages:
This instruction is supported in the following shader models:
|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|