/// <inheritdoc /> protected override void UnloadContent() { base.UnloadContent(); FullScreenQuad.Dispose(); HorizontalRenderTarget.Dispose(); MainRenderTarget.Dispose(); }
protected override void UnloadContent() { base.UnloadContent(); FullScreenQuad.Dispose(); FirstPassBloomRenderTarget.Dispose(); MainSceneRenderTarget.Dispose(); SecondPassBloomRenderTarget.Dispose(); }
/// <inheritdoc /> protected override void UnloadContent() { Primitive.Dispose(); Arrows.ForEach(arrow => arrow.Dispose()); Arrows.Clear(); Primitive.Dispose(); FullScreenQuad.Dispose(); Effect.Dispose(); DebugTextureEffect.Dispose(); base.UnloadContent(); }
public void Dispose() { if (FullScreenQuad != null && !FullScreenQuad.Disposed) { FullScreenQuad.Dispose(); } if (Effect != null && !Effect.Disposed) { Effect.Dispose(); } if (AlarmTexture != null && !AlarmTexture.D3dTexture.Disposed) { AlarmTexture.dispose(); } if (RenderTarget2D != null && !RenderTarget2D.Disposed) { RenderTarget2D.Dispose(); } if (DepthStencil != null && !DepthStencil.Disposed) { DepthStencil.Dispose(); } if (OldDepthStencil != null && !OldDepthStencil.Disposed) { OldDepthStencil.Dispose(); } if (OldRenderTarget != null && !OldRenderTarget.Disposed) { OldRenderTarget.Dispose(); } }
/// <inheritdoc /> protected override void UnloadContent() { base.UnloadContent(); FullScreenQuad.Dispose(); ShadowMapRenderTarget.Dispose(); }
public void Dispose() { noShadowsShader.Dispose(); layout.Dispose(); quad.Dispose(); }
internal static void DisposeAllUtils() { FullScreenQuad?.Dispose(); UnitCube?.Dispose(); }