Revert "Temporary fix for MoltenVK"

This reverts commit 41057458e4.
This commit is contained in:
Denis Pauk 2022-07-24 14:09:05 +03:00
parent e5f7bf7e82
commit 36b41fc107

View file

@ -71,10 +71,6 @@ get_memory_type(uint32_t mem_req_type_bits,
!(vk_device.mem_properties.memoryTypes[i].propertyFlags & mem_skip)
)
{
#if defined(__APPLE__)
// code has some flags issues with MoltenVK
return i;
#else
// Calculate cost as number of bits from preferredFlags present in this memory type.
int curr_cost = count_bits_set(
vk_device.mem_properties.memoryTypes[i].propertyFlags & mem_pref);
@ -85,7 +81,6 @@ get_memory_type(uint32_t mem_req_type_bits,
mem_type_index = i;
max_cost = curr_cost;
}
#endif
}
}
}