I'm trying to understand the exact meaning of RenderTargetUsage.DiscardContents. The documentation says:
Determines how render target data is used once a new render target is set.
DiscardContents - Always clears the render target data.
- Does calling
GraphicsDevice.SetRenderTarget(null)
to return to the back buffer count as setting a new render target (therefore clearing discarding any previous one)? - Are the contents discarded either way at the end of the frame (i.e. when the graphic device presents), or do they persist into future frames even in this mode?