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 |
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 );