From fd152cf17642b22799f3899f585666db747a46d5 Mon Sep 17 00:00:00 2001 From: Alex Walters Date: Fri, 4 May 2018 16:52:21 +0100 Subject: [PATCH] texture3d checks wrong type of flag (TRANSFER_DST) Test is checking that the format supports being a transfer destination but is checking the optimalTilingFeatures against an image usage flag (VK_IMAGE_USAGE_TRANSFER_DST_BIT) instead of a format feature flag (VK_FORMAT_FEATURE_TRANSFER_DST_BIT) which have different values. Otherwise the test believes the device does not support the required format and quits. --- examples/texture3d/texture3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/texture3d/texture3d.cpp b/examples/texture3d/texture3d.cpp index ec17a076..8031c2f5 100644 --- a/examples/texture3d/texture3d.cpp +++ b/examples/texture3d/texture3d.cpp @@ -234,7 +234,7 @@ public: VkFormatProperties formatProperties; vkGetPhysicalDeviceFormatProperties(physicalDevice, texture.format, &formatProperties); // Check if format supports transfer - if (!(formatProperties.optimalTilingFeatures & VK_IMAGE_USAGE_TRANSFER_DST_BIT)) + if (!(formatProperties.optimalTilingFeatures & VK_FORMAT_FEATURE_TRANSFER_DST_BIT)) { std::cout << "Error: Device does not support flag TRANSFER_DST for selected texture format!" << std::endl; return;