Skip to content

Commit

Permalink
VK: added VK_IMAGE_CREATE_EXTENDED_USAGE_BIT in addition to VK_IMAGE_…
Browse files Browse the repository at this point in the history
…CREATE_MUTABLE_FORMAT_BIT
  • Loading branch information
dzhdanNV authored Aug 14, 2024
1 parent 97eb304 commit c3a8e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/VK/DeviceVK.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ void DeviceVK::FillCreateInfo(const BufferDesc& bufferDesc, VkBufferCreateInfo&
}

void DeviceVK::FillCreateInfo(const TextureDesc& textureDesc, VkImageCreateInfo& info) const {
VkImageCreateFlags flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; // typeless
VkImageCreateFlags flags = VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT | VK_IMAGE_CREATE_EXTENDED_USAGE_BIT; // typeless
const FormatProps& formatProps = GetFormatProps(textureDesc.format);
if (formatProps.blockWidth > 1)
flags |= VK_IMAGE_CREATE_BLOCK_TEXEL_VIEW_COMPATIBLE_BIT; // format can be used to create a view with an uncompressed format (1 texel covers 1 block)
Expand Down

0 comments on commit c3a8e38

Please sign in to comment.