D3D12_DSV_FLAGS Enumeration

Specifies depth-stencil view options.

Syntax

typedef enum D3D12_DSV_FLAGS {
  D3D12_DSV_FLAG_NONE,
  D3D12_DSV_FLAG_READ_ONLY_DEPTH,
  D3D12_DSV_FLAG_READ_ONLY_STENCIL
} ;

Constants

D3D12_DSV_FLAG_NONE Indicates a default view.
D3D12_DSV_FLAG_READ_ONLY_DEPTH Indicates that depth values are read only.
D3D12_DSV_FLAG_READ_ONLY_STENCIL Indicates that stencil values are read only.

Remarks

Specify a combination of the values in this enumeration in the Flags member of a D3D12_DEPTH_STENCIL_VIEW_DESC structure. The values are combined by using a bitwise OR operation.

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 read/write conflicts between separate views.

Requirements

   
Header d3d12.h

See Also

Core Enumerations