Function inexor::vulkan_renderer::tools::compare_physical_devices¶
Defined in File device_info.hpp
Function Documentation¶
-
bool inexor::vulkan_renderer::tools::compare_physical_devices(VkPhysicalDeviceFeatures &required_features, std::span<const char*> required_extensions, const DeviceInfo &lhs, const DeviceInfo &rhs)¶
Compare two physical devices and determine which one is preferable
- Parameters:
required_features – The required device features which must all be supported by the physical device
required_extensions – The required device extensions which must all be supported by the physical device
lhs – A physical device to compare with the other one
rhs – The other physical device
- Returns:
trueiflhsis more preferable overrhs