Skip to content

Commit 2a9f119

Browse files
Fixed VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT
1 parent e84b2be commit 2a9f119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lvk/vulkan/VulkanClasses.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ lvk::VulkanSwapchain::VulkanSwapchain(VulkanContext& ctx, uint32_t width, uint32
11141114
vkGetPhysicalDeviceFormatProperties(pd, format, &props);
11151115

11161116
const bool isStorageSupported = (caps.supportedUsageFlags & VK_IMAGE_USAGE_STORAGE_BIT) > 0;
1117-
const bool isTilingOptimalSupported = (props.optimalTilingFeatures & VK_IMAGE_USAGE_STORAGE_BIT) > 0;
1117+
const bool isTilingOptimalSupported = (props.optimalTilingFeatures & VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT) > 0;
11181118

11191119
if (isStorageSupported && isTilingOptimalSupported) {
11201120
usageFlags |= VK_IMAGE_USAGE_STORAGE_BIT;

0 commit comments

Comments
 (0)