Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualErik Rufelt

Posted 08 September 2012 - 02:12 PM

Keep a second buffer around that has the static contents of the particular depth value you wish to clear to, and use CopySubresourceRegion. http://msdn.microsof...4(v=vs.85).aspx

Actually never mind, the docs say you can't do that for a depth stencil resource. Unless you clear very many times per frame state-changes won't be a problem for drawing a quad.

#1Erik Rufelt

Posted 08 September 2012 - 02:09 PM

Keep a second buffer around that has the static contents of the particular depth value you wish to clear to, and use CopySubresourceRegion. http://msdn.microsoft.com/en-us/library/windows/desktop/ff476394(v=vs.85).aspx

PARTNERS