The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

aux/vk: Add image helper struct and functions.

authored by

Lubosz Sarnecki and committed by
Jakob Bornecrantz
68c5eecb 589c7e4f

+20
+8
src/xrt/auxiliary/vk/vk_helpers.c
··· 1170 1170 vk->vkFreeMemory(vk->device, self->memory, NULL); 1171 1171 } 1172 1172 1173 + void 1174 + vk_image_destroy(struct vk_image *self, struct vk_bundle *vk) 1175 + { 1176 + vk->vkDestroySampler(vk->device, self->sampler, NULL); 1177 + vk->vkDestroyImageView(vk->device, self->view, NULL); 1178 + vk->vkDestroyImage(vk->device, self->handle, NULL); 1179 + vk->vkFreeMemory(vk->device, self->memory, NULL); 1180 + }
+12
src/xrt/auxiliary/vk/vk_helpers.h
··· 188 188 void *data; 189 189 }; 190 190 191 + struct vk_image 192 + { 193 + VkImage handle; 194 + VkDeviceMemory memory; 195 + VkImageView view; 196 + VkSampler sampler; 197 + }; 198 + 191 199 /* 192 200 * 193 201 * String helper functions. ··· 434 442 435 443 void 436 444 vk_buffer_destroy(struct vk_buffer *self, struct vk_bundle *vk); 445 + 446 + 447 + void 448 + vk_image_destroy(struct vk_image *self, struct vk_bundle *vk); 437 449 438 450 #ifdef __cplusplus 439 451 }