D3D12_SRV_DIMENSION Enumeration

Identifies the type of resource that will be viewed as a shader resource.

Syntax

typedef enum D3D12_SRV_DIMENSION {
  D3D12_SRV_DIMENSION_UNKNOWN,
  D3D12_SRV_DIMENSION_BUFFER,
  D3D12_SRV_DIMENSION_TEXTURE1D,
  D3D12_SRV_DIMENSION_TEXTURE1DARRAY,
  D3D12_SRV_DIMENSION_TEXTURE2D,
  D3D12_SRV_DIMENSION_TEXTURE2DARRAY,
  D3D12_SRV_DIMENSION_TEXTURE2DMS,
  D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY,
  D3D12_SRV_DIMENSION_TEXTURE3D,
  D3D12_SRV_DIMENSION_TEXTURECUBE,
  D3D12_SRV_DIMENSION_TEXTURECUBEARRAY,
  D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE
} ;

Constants

D3D12_SRV_DIMENSION_UNKNOWN The type is unknown.
D3D12_SRV_DIMENSION_BUFFER The resource is a buffer.
D3D12_SRV_DIMENSION_TEXTURE1D The resource is a 1D texture.
D3D12_SRV_DIMENSION_TEXTURE1DARRAY The resource is an array of 1D textures.
D3D12_SRV_DIMENSION_TEXTURE2D The resource is a 2D texture.
D3D12_SRV_DIMENSION_TEXTURE2DARRAY The resource is an array of 2D textures.
D3D12_SRV_DIMENSION_TEXTURE2DMS The resource is a multisampling 2D texture.
D3D12_SRV_DIMENSION_TEXTURE2DMSARRAY The resource is an array of multisampling 2D textures.
D3D12_SRV_DIMENSION_TEXTURE3D The resource is a 3D texture.
D3D12_SRV_DIMENSION_TEXTURECUBE The resource is a cube texture.
D3D12_SRV_DIMENSION_TEXTURECUBEARRAY The resource is an array of cube textures.
D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTURE The resource is a raytracing acceleration structure.

Remarks

These values are used by a shader-resource-view description, D3D12_SHADER_RESOURCE_VIEW_DESC.

Requirements

   
Header d3d12.h

See Also

Core Enumerations