XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

DepthTarget as texture

Last post 6/29/2009 8:43 PM by legalize. 1 replies.
  • 5/28/2009 8:29 PM

    DepthTarget as texture

    Does anyone know if it is possible to bind the current depth target as a texture if the depth writes are turned off? It seems that there shouldn't be a problem with doing this (conceptually) since it is only ever being read from.

    I did try it, and it spews the warning that the texture is bound as the depth target, and then nulls the texture out. Is this just not a possiblity, or are there any other render states I need to set to allow this behavior?

  • 6/29/2009 8:43 PM In reply to

    Re: DepthTarget as texture

    Turning off writes are not good enough, you must also unbind the depth/stencil resource.
Page 1 of 1 (2 items) Previous Next