dcl_resource raw (sm5 - asm)

Declare a shader resource input and assign it to a t# - a placeholder register for the resource.

dcl_resource_raw dstSRV

 

ItemDescription

dstSRV

[in] A t# register declared as a reference to a ShaderResourceView of a raw buffer.

 

Remarks

The contents of the structure have no type; operations performed on the memory may implicitly interpret the data as having a type.

Instructions that reference a raw t# take a 1D address, an unsigned 32-bit value specifying the byte offset to a 32-bit aligned location in the Buffer. The address must be a multiple of 4 (bytes).

Views bound to t# declared as raw must have RAW specified on their creation; otherwise behavior when accessed from a shader is undefined.

cs_4_0 and cs_4_1 support this instruction.

This instruction applies to the following shader stages:

VertexHullDomainGeometryPixelCompute
XX XXXX

 

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

 

Related topics

Shader Model 5 Assembly (DirectX HLSL)

 

 

Show: