| 800 | } |
| 801 | |
| 802 | auto Device::choose_swapchain_surface_format(ChooseSwapchainSurfaceFormatInfo const & info) const -> SurfaceFormat |
| 803 | { |
| 804 | VkSurfaceFormatKHR out_format = {}; |
| 805 | check_result( |
| 806 | daxa_dvc_choose_swapchain_surface_format( |
| 807 | rc_cast<daxa_Device>(object), |
| 808 | reinterpret_cast<daxa_ChooseSwapchainSurfaceFormatInfo const*>(&info), |
| 809 | &out_format), |
| 810 | "failed to choose swapchain surface format"); |
| 811 | |
| 812 | return SurfaceFormat{ |
| 813 | .format = std::bit_cast<Format>(out_format.format), |
| 814 | .color_space = std::bit_cast<ColorSpace>(out_format.colorSpace), |
| 815 | }; |
| 816 | } |
| 817 | |
| 818 | auto Device::inc_refcnt(ImplHandle const * object) -> u64 |
| 819 | { |
nothing calls this directly
no test coverage detected