public void Dispose()
 {
     Object.DestroyImmediate(indexTex);
     foreach (var i in textures)
     {
         Object.DestroyImmediate(i);
     }
     indexBuffers.Dispose();
     pool.Dispose();
     commandListBuffer.Dispose();
 }
예제 #2
0
 public void Dispose()
 {
     Object.DestroyImmediate(indexTex);
     foreach (var i in textures)
     {
         Object.DestroyImmediate(i);
     }
     allFormats.Dispose();
     indexBuffers.Dispose();
     pool.Dispose();
 }