/// <inheritdoc /> public override void Dispose() { FontConsolas12.Dispose(); FontConsolas12 = default; ShaderLibrary.Dispose(); ShaderLibrary = default; DisposeBuffers(); DisposeSurface(); GraphicsHost.ReleaseHdc(GraphicsHostDeviceContext); GraphicsHostDeviceContext = default; GraphicsHost.Dispose(); GraphicsHost = default; base.Dispose(); }
public void Dispose() { ShaderLibrary.Dispose(); foreach (var pass in Passes) { pass.Dispose(); } Quad.Dispose(); CameraUniformBuffer.Dispose(); SceneUniformBuffer.Dispose(); MaterialUniformBuffer.Dispose(); ToneMapUniformBuffer.Dispose(); ShadowMapFramebuffer.Dispose(); ShadowMapTexture.Dispose(); ShadowMapFilteredFramebuffer.Dispose(); ShadowMapFilteredTexture.Dispose(); SSSDepthTexture.Dispose(); SSSHighFramebuffer.Dispose(); SSSHighTexture.Dispose(); SSSMiddleFramebuffer.Dispose(); SSSMiddleTexture.Dispose(); SSSLowFramebuffer.Dispose(); SSSLowTexture.Dispose(); SSSLowFilteredFramebuffer.Dispose(); SSSLowFilteredTexture.Dispose(); SceneFramebuffer.Dispose(); SceneColorTexture.Dispose(); SceneDepthTexture.Dispose(); ToneMapFramebuffer.Dispose(); ToneMapColorTexture.Dispose(); }