protected override void Dispose(bool disposing) { if (disposing) { Vertices.Unmap(); Vertices.Dispose(); } base.Dispose(disposing); }
protected override void Dispose(bool disposing) { model.Dispose(); envCube.Dispose(); descLayoutMain.Dispose(); descLayoutTextures.Dispose(); descriptorPool.Dispose(); uboMats.Dispose(); base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!isDisposed) { if (disposing) { ibo?.Dispose(); vbo?.Dispose(); materialUBO?.Dispose(); descriptorPool?.Dispose(); } else { Debug.WriteLine("model was not disposed"); } isDisposed = true; } }