vk: Remove unused vk_image

This commit is contained in:
Jakob Bornecrantz 2020-07-08 17:43:16 +01:00 committed by Jakob Bornecrantz
parent 0d05eb6cae
commit 5a9fa0a7e6
2 changed files with 0 additions and 19 deletions

View file

@ -1176,12 +1176,3 @@ vk_buffer_destroy(struct vk_buffer *self, struct vk_bundle *vk)
vk->vkDestroyBuffer(vk->device, self->handle, NULL);
vk->vkFreeMemory(vk->device, self->memory, NULL);
}
void
vk_image_destroy(struct vk_image *self, struct vk_bundle *vk)
{
vk->vkDestroySampler(vk->device, self->sampler, NULL);
vk->vkDestroyImageView(vk->device, self->view, NULL);
vk->vkDestroyImage(vk->device, self->handle, NULL);
vk->vkFreeMemory(vk->device, self->memory, NULL);
}

View file

@ -192,13 +192,6 @@ struct vk_buffer
void *data;
};
struct vk_image
{
VkImage handle;
VkDeviceMemory memory;
VkImageView view;
VkSampler sampler;
};
/*
*
@ -456,9 +449,6 @@ void
vk_buffer_destroy(struct vk_buffer *self, struct vk_bundle *vk);
void
vk_image_destroy(struct vk_image *self, struct vk_bundle *vk);
#ifdef __cplusplus
}
#endif