Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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_UNKNOWNValue: 0 The type is unknown. |
D3D12_SRV_DIMENSION_BUFFERValue: 1 The resource is a buffer. |
D3D12_SRV_DIMENSION_TEXTURE1DValue: 2 The resource is a 1D texture. |
D3D12_SRV_DIMENSION_TEXTURE1DARRAYValue: 3 The resource is an array of 1D textures. |
D3D12_SRV_DIMENSION_TEXTURE2DValue: 4 The resource is a 2D texture. |
D3D12_SRV_DIMENSION_TEXTURE2DARRAYValue: 5 The resource is an array of 2D textures. |
D3D12_SRV_DIMENSION_TEXTURE2DMSValue: 6 The resource is a multisampling 2D texture. |
D3D12_SRV_DIMENSION_TEXTURE2DMSARRAYValue: 7 The resource is an array of multisampling 2D textures. |
D3D12_SRV_DIMENSION_TEXTURE3DValue: 8 The resource is a 3D texture. |
D3D12_SRV_DIMENSION_TEXTURECUBEValue: 9 The resource is a cube texture. |
D3D12_SRV_DIMENSION_TEXTURECUBEARRAYValue: 10 The resource is an array of cube textures. |
D3D12_SRV_DIMENSION_RAYTRACING_ACCELERATION_STRUCTUREValue: 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 |