D3D11_DSV_FLAG Enumeration

Depth-stencil view options.

Syntax

typedef enum D3D11_DSV_FLAG
{
    D3D11_DSV_READ_ONLY_DEPTH = 0x1L,
    D3D11_DSV_READ_ONLY_STENCIL = 0x2L
} D3D11_DSV_FLAG;  

Constants

Constant Description
D3D11_DSV_READ_ONLY_DEPTH Indicates that depth values are read only.
D3D11_DSV_READ_ONLY_STENCIL Indicates that stencil values are read only.

Remarks

This enumeration is used by D3D11_DEPTH_STENCIL_VIEW_DESC.

Limiting a depth-stencil buffer to read-only access allows more than one depth-stencil view to be bound to the pipeline simultaneously, since it is not possible to have a read/write conflicts between separate views.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).