Beispiel #1
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                Vertices.Unmap();
                Vertices.Dispose();
            }

            base.Dispose(disposing);
        }
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            model.Dispose();
            envCube.Dispose();

            descLayoutMain.Dispose();
            descLayoutTextures.Dispose();
            descriptorPool.Dispose();

            uboMats.Dispose();

            base.Dispose(disposing);
        }
Beispiel #3
0
 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;
     }
 }