Ask Learn
		
	
					Preview
					Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
Depth-stencil view options.
typedef enum D3D11_DSV_FLAG {
  D3D11_DSV_READ_ONLY_DEPTH = 0x1L,
  D3D11_DSV_READ_ONLY_STENCIL = 0x2L
} ;
| D3D11_DSV_READ_ONLY_DEPTHValue: 0x1L Indicates that depth values are read only. | 
| D3D11_DSV_READ_ONLY_STENCILValue: 0x2L Indicates that stencil values are read only. | 
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.
| Requirement | Value | 
|---|---|
| Header | d3d11.h | 
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in