Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 

ItemDescription

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:

VertexHullDomainGeometryPixelCompute
X

 

Minimum Shader Model

This instruction is supported in the following shader models:

Shader ModelSupported
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

 

 

 

Community Additions

Show:
© 2014 Microsoft. All rights reserved.