public void DisposeBuffers() { if (GBuffers != null) { GBuffers.Dispose(); GBuffers = null; } if (SceneColour != null) { SceneColour.Dispose(); SceneColour = null; } WindowSizeVramUsage = 0; }
public void DisposeBuffers() { if (Bloom != null) { Bloom.Dispose(); Bloom = null; } if (Bloom0 != null) { Bloom0.Dispose(); Bloom0 = null; } if (Bloom1 != null) { Bloom1.Dispose(); Bloom1 = null; } if (LumBlendResult != null) { LumBlendResult.Dispose(); LumBlendResult = null; } if (Reduction0 != null) { Reduction0.Dispose(); Reduction0 = null; } if (Reduction1 != null) { Reduction1.Dispose(); Reduction1 = null; } if (Primary != null) { Primary.Dispose(); Primary = null; } WindowSizeVramUsage = 0; }