diff --git a/src/vulkan/runtime/vk_image.c b/src/vulkan/runtime/vk_image.c index 68525fb0ba1..6bdbe68a350 100644 --- a/src/vulkan/runtime/vk_image.c +++ b/src/vulkan/runtime/vk_image.c @@ -269,6 +269,7 @@ vk_image_view_init(struct vk_device *device, image_view->create_flags = pCreateInfo->flags; image_view->image = image; image_view->view_type = pCreateInfo->viewType; + image_view->format = pCreateInfo->format; switch (image_view->view_type) { case VK_IMAGE_VIEW_TYPE_1D: diff --git a/src/vulkan/runtime/vk_image.h b/src/vulkan/runtime/vk_image.h index b668bbb9615..e21c4993101 100644 --- a/src/vulkan/runtime/vk_image.h +++ b/src/vulkan/runtime/vk_image.h @@ -132,6 +132,9 @@ struct vk_image_view { struct vk_image *image; VkImageViewType view_type; + /** VkImageViewCreateInfo::format */ + VkFormat format; + /** Image view format, relative to the selected aspects * * For a depth/stencil image: