Пример #1
0
 public void Dispose()
 {
     if (vkBuffer.Handle != 0)
     {
         vkDestroyBuffer(device.device, vkBuffer, null);
     }
     memory.Dispose();
 }
Пример #2
0
 public virtual void Dispose()
 {
     memory.Dispose();
     //vkFreeMemory(device.device, deviceMemory, null);
     vkDestroyImage(device.device, image, null);
     vkDestroySampler(device.device, sampler, null);
     vkDestroyImageView(device.device, view, null);
 }