public void Dispose() { ThrowIfDisposed(); renderer.Dispose(); cameraBuffer.Dispose(); depthSampler?.Dispose(); depthTarget?.Dispose(); disposed = true; }
public void Dispose() { ThrowIfDisposed(); renderer.Dispose(); cameraBuffer.Dispose(); colorSampler?.Dispose(); normalSampler?.Dispose(); attributeSampler?.Dispose(); depthSampler?.Dispose(); colorTarget?.Dispose(); normalTarget?.Dispose(); attributeTarget?.Dispose(); depthTarget?.Dispose(); disposed = true; }