Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Identifies the type of resource that will be viewed as a shader resource.
typedef enum D3D12_SRV_DIMENSION {
D3D12_SRV_DIMENSION_UNKNOWN = 0,
D3D12_SRV_DIMENSION_BUFFER = 1,
D3D12_SRV_DIMENSION_TEXTURE1D = 2,
D3D12_SRV_DIMENSION_TEXTURE1DARRAY = 3,
D3D12_SRV_DIMENSION_TEXTURE2D = 4,
D3D12_SRV_DIMENSION_TEXTURE2DARRAY = 5,
D3D12_SRV_DIMENSION_TEXTURE2DMS = 6,
D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY = 7,
D3D12_SRV_DIMENSION_TEXTURE3D = 8,
D3D12_SRV_DIMENSION_TEXTURECUBE = 9,
D3D12_SRV_DIMENSION_TEXTURECUBEARRAY = 10,
D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE = 11
} ;
D3D12_SRV_DIMENSION_UNKNOWN Value: 0 The type is unknown. |
D3D12_SRV_DIMENSION_BUFFER Value: 1 The resource is a buffer. |
D3D12_SRV_DIMENSION_TEXTURE1D Value: 2 The resource is a 1D texture. |
D3D12_SRV_DIMENSION_TEXTURE1DARRAY Value: 3 The resource is an array of 1D textures. |
D3D12_SRV_DIMENSION_TEXTURE2D Value: 4 The resource is a 2D texture. |
D3D12_SRV_DIMENSION_TEXTURE2DARRAY Value: 5 The resource is an array of 2D textures. |
D3D12_SRV_DIMENSION_TEXTURE2DMS Value: 6 The resource is a multisampling 2D texture. |
D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY Value: 7 The resource is an array of multisampling 2D textures. |
D3D12_SRV_DIMENSION_TEXTURE3D Value: 8 The resource is a 3D texture. |
D3D12_SRV_DIMENSION_TEXTURECUBE Value: 9 The resource is a cube texture. |
D3D12_SRV_DIMENSION_TEXTURECUBEARRAY Value: 10 The resource is an array of cube textures. |
D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE Value: 11 The resource is a raytracing acceleration structure. |
These values are used by a shader-resource-view description, D3D12_SHADER_RESOURCE_VIEW_DESC.
Requirement | Value |
---|---|
Header | d3d12.h |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today