Nez.Portable/Graphics/Textures/RenderTarget.cs
/// <summary>
/// puts a temporary RenderTarget2D back in the pool. Do not attempt to put RenderTarget2Ds in the pool that were not acquired via getTemporary.
/// </summary>
/// <param name="renderTarget">Render target.</param>
puts a temporary RenderTarget2D back in the pool. Do not attempt to put RenderTarget2Ds in the pool that were not acquired via getTemporary.
puts a temporary RenderTarget2D back in the pool . Do not attempt to put RenderTarget2Ds in the pool that were not acquired via getTemporary .
public static void releaseTemporary(RenderTarget2D renderTarget)
        {
            Assert.isTrue(
                renderTarget is TrackedRenderTarget2D,
                "Attempted to release a temporary RenderTarget2D that is not managed by the system");
            var trackedRT = renderTarget as TrackedRenderTarget2D;
            trackedRT.lastFrameUsed = Time.frameCount;
            instance._renderTargetPool.Add(trackedRT);
        }
public static void releaseTemporary ( RenderTarget2D renderTarget ) { Assert . isTrue ( renderTarget is TrackedRenderTarget2D , " " ) ; var trackedRT = renderTarget as TrackedRenderTarget2D ; trackedRT . lastFrameUsed = Time . frameCount ; instance . _renderTargetPool . Add ( trackedRT ) ; }
puts a temporary RenderTarget2D back in the pool.
puts a temporary RenderTarget2D back in the pool .
renderTarget
RenderTarget2D
None