D3D12_SRV_DIMENSION enumeration (d3d12.h)
Identifies the type of resource that will be viewed as a shader resource.
Syntax
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
} ;
Constants
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. |
Remarks
These values are used by a shader-resource-view description, D3D12_SHADER_RESOURCE_VIEW_DESC.
Requirements
Requirement | Value |
---|---|
Header | d3d12.h |