Sign in to follow this  
pierceblaylock

[D3D10] NULL Render Target

Recommended Posts

Is it possible to have a NULL render target in D3D10? I'm trying to write a shader that does nothing but render the scene's depth to a depth stencil view. I don't care about the render target in this shader. I looked up the documentation for OMSetRenderTargets and it says: ppRenderTargetViews [in] Pointer to an array of render targets (see ID3D10RenderTargetView) to bind to the device. If this parameter is NULL, no render targets are bound. See Remarks. I looked at the remarks, but it mentions nothing about NULL render targets. But when I trying doing this: device->OMSetRenderTargets(1, NULL, dsv); It throws an "Access violation reading location 0x00000000" error on that line. Does this mean the documentation is wrong? Or am I doing something wrong?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this