Original Post
I''m trying to render to an offscreen surface using managed directx but I''m missing something. (too bad the docs are no help) I''ve created a rendertarget, and I can set it with device.SetRenderTarget(...) but I dont see how to create and set another zbuffer. There is no SetZBuffer device function, however there is a GetDepthStencil function, so how would I Set it?
My offscreen surface is only 512x512 so I would assume that I need to make a 512x512 depth buffer too...and set it somehow.