mirror of
https://github.com/yquake2/ref_vk.git
synced 2024-11-22 20:11:27 +00:00
parent
e5f7bf7e82
commit
36b41fc107
1 changed files with 0 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue