Share this post

Link to post

Share on other sites

Yup, this is what you can do when you want to render depth only (for example to a shadow map). You need to pass "0" as the first argument though. This number only indicates the number of render targets you want to bind, since the maximum number of depth stencil surfaces you can bind is always one.