| 281 | } |
| 282 | |
| 283 | auto Instance::choose_device(ImplicitFeatureFlags desired_features, DeviceInfo2 const & p_info) -> DeviceInfo2 |
| 284 | { |
| 285 | auto info = p_info; |
| 286 | check_result(daxa_instance_choose_device( |
| 287 | r_cast<daxa_Instance>(this->object), |
| 288 | static_cast<daxa_ImplicitFeatureFlags>(desired_features.data), |
| 289 | r_cast<daxa_DeviceInfo2 *>(&info)), |
| 290 | "failed to find fitting device"); |
| 291 | return info; |
| 292 | } |
| 293 | |
| 294 | auto Instance::list_devices_properties() -> std::span<DeviceProperties const> |
| 295 | { |