Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 799 Bytes

retrieving-a-depth-buffer.md

File metadata and controls

31 lines (19 loc) · 799 Bytes
description ms.assetid title ms.topic ms.date
The following code example shows how to use the IDirect3DDevice9::GetDepthStencilSurface method to retrieve a pointer to the depth-buffer surface owned by the device.
cd5c158a-d2c4-4ced-aa6f-cd8c0e426a74
Retrieving a Depth Buffer (Direct3D 9)
article
05/31/2018

Retrieving a Depth Buffer (Direct3D 9)

The following code example shows how to use the IDirect3DDevice9::GetDepthStencilSurface method to retrieve a pointer to the depth-buffer surface owned by the device.

LPDIRECT3DSURFACE9 pZBuffer;

m_d3dDevice->GetDepthStencilSurface( &pZBuffer );

Related topics

Depth Buffers