mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 04:15:44 +00:00
c/render: Make srgb_view renderable for scratch images
This commit is contained in:
parent
29574dfea3
commit
84a0277ee7
|
@ -463,7 +463,7 @@ create_scratch_image_and_view(struct vk_bundle *vk, VkExtent2D extent, struct re
|
|||
VkImageUsageFlags unorm_usage = VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||
|
||||
// Very few cards support SRGB storage.
|
||||
VkImageUsageFlags srgb_usage = VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||
VkImageUsageFlags srgb_usage = VK_IMAGE_USAGE_SAMPLED_BIT | VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
|
||||
|
||||
// Combination of both.
|
||||
VkImageUsageFlags image_usage = unorm_usage | srgb_usage;
|
||||
|
|
Loading…
Reference in a new issue