Skip to content

Commit

Permalink
Added the VK_IMAGE_CREATE_EXTENDED_USAGE_BIT flag to textures created…
Browse files Browse the repository at this point in the history
… with isTypeless = true.
  • Loading branch information
apanteleev committed Apr 24, 2024
1 parent a9e0ca1 commit 89651be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vulkan/vulkan-texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ namespace nvrhi::vulkan
flags |= vk::ImageCreateFlagBits::eCubeCompatible;

if (d.isTypeless)
flags |= vk::ImageCreateFlagBits::eMutableFormat;
flags |= vk::ImageCreateFlagBits::eMutableFormat | vk::ImageCreateFlagBits::eExtendedUsage;

return flags;
}
Expand Down

0 comments on commit 89651be

Please sign in to comment.