Merge pull request #476 from CaffeinePwrdAl/texture3d_format_flag_fix

texture3d checks wrong type of flag (VK_IMAGE_USAGE_TRANSFER_DST_BIT instead of VK_FORMAT_FEATURE_TRANSFER_DST_BIT)
This commit is contained in:
Sascha Willems 2018-05-06 09:22:09 +02:00 committed by GitHub
commit 6e28986d5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;