| 743 | } |
| 744 | |
| 745 | auto Device::get_supported_present_modes(NativeWindowInfo native_window_info) const -> std::vector<PresentMode> |
| 746 | { |
| 747 | auto const c_native_window_info = std::bit_cast<daxa_NativeWindowInfo>(native_window_info); |
| 748 | u32 present_mode_count = 0; |
| 749 | check_result( |
| 750 | daxa_dvc_report_supported_present_modes( |
| 751 | rc_cast<daxa_Device>(object), |
| 752 | c_native_window_info, |
| 753 | &present_mode_count, |
| 754 | nullptr), |
| 755 | "failed to query present mode count"); |
| 756 | |
| 757 | std::vector<PresentMode> ret = {}; |
| 758 | ret.resize(present_mode_count); |
| 759 | check_result( |
| 760 | daxa_dvc_report_supported_present_modes( |
| 761 | rc_cast<daxa_Device>(object), |
| 762 | c_native_window_info, |
| 763 | &present_mode_count, |
| 764 | r_cast<VkPresentModeKHR *>(ret.data())), |
| 765 | "failed to query present modes"); |
| 766 | ret.resize(present_mode_count); |
| 767 | return ret; |
| 768 | } |
| 769 | |
| 770 | auto Device::get_supported_image_formats(NativeWindowInfo native_window_info) const -> std::vector<Format> |
| 771 | { |
nothing calls this directly
no test coverage detected