Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

D3D11_DSV_DIMENSION enumeration

Specifies how to access a resource used in a depth-stencil view.

Syntax


typedef enum D3D11_DSV_DIMENSION { 
  D3D11_DSV_DIMENSION_UNKNOWN           = 0,
  D3D11_DSV_DIMENSION_TEXTURE1D         = 1,
  D3D11_DSV_DIMENSION_TEXTURE1DARRAY    = 2,
  D3D11_DSV_DIMENSION_TEXTURE2D         = 3,
  D3D11_DSV_DIMENSION_TEXTURE2DARRAY    = 4,
  D3D11_DSV_DIMENSION_TEXTURE2DMS       = 5,
  D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY  = 6
} D3D11_DSV_DIMENSION;

Constants

D3D11_DSV_DIMENSION_UNKNOWN

D3D11_DSV_DIMENSION_UNKNOWN is not a valid value for D3D11_DEPTH_STENCIL_VIEW_DESC and is not used.

D3D11_DSV_DIMENSION_TEXTURE1D

The resource will be accessed as a 1D texture.

D3D11_DSV_DIMENSION_TEXTURE1DARRAY

The resource will be accessed as an array of 1D textures.

D3D11_DSV_DIMENSION_TEXTURE2D

The resource will be accessed as a 2D texture.

D3D11_DSV_DIMENSION_TEXTURE2DARRAY

The resource will be accessed as an array of 2D textures.

D3D11_DSV_DIMENSION_TEXTURE2DMS

The resource will be accessed as a 2D texture with multisampling.

D3D11_DSV_DIMENSION_TEXTURE2DMSARRAY

The resource will be accessed as an array of 2D textures with multisampling.

Remarks

This enumeration is used in D3D11_DEPTH_STENCIL_VIEW_DESC to create a depth-stencil view.

Requirements

Header

D3D11.h

See also

Resource Enumerations

 

 

Show:
© 2017 Microsoft