public void Dispose() { if (vkBuffer.Handle != 0) { vkDestroyBuffer(device.device, vkBuffer, null); } memory.Dispose(); }
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); }