Skip to content

Commit

Permalink
Remove VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT bit from image creation. (g…
Browse files Browse the repository at this point in the history
…oogle#543)

No sample mismatch the image format and imageview format, meaning this
feature is not used. In addition, specifying this bit prevents the
driver to make some assumptions, and this can degrade performances
  • Loading branch information
RenfengLiu authored Jan 23, 2025
1 parent be5253b commit 001de7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ppx/grfx/vk/vk_image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Result Image::CreateApiObjects(const grfx::ImageCreateInfo* pCreateInfo)
extent.height = pCreateInfo->height;
extent.depth = pCreateInfo->depth;

VkImageCreateFlags createFlags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
VkImageCreateFlags createFlags = 0;
if (pCreateInfo->type == grfx::IMAGE_TYPE_CUBE) {
createFlags |= VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
}
Expand Down

0 comments on commit 001de7f

Please sign in to comment.