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:
commit
6e28986d5d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue