| 718 | } |
| 719 | |
| 720 | void Device::present_frame(PresentInfo const & info) |
| 721 | { |
| 722 | daxa_PresentInfo const c_present_info = { |
| 723 | .wait_binary_semaphores = reinterpret_cast<daxa_BinarySemaphore const *>(info.wait_binary_semaphores.data()), |
| 724 | .wait_binary_semaphore_count = info.wait_binary_semaphores.size(), |
| 725 | .swapchain = *reinterpret_cast<daxa_Swapchain const *>(&info.swapchain), |
| 726 | .queue = std::bit_cast<daxa_Queue>(info.queue), |
| 727 | }; |
| 728 | check_result( |
| 729 | daxa_dvc_present_frame(r_cast<daxa_Device>(this->object), &c_present_info), |
| 730 | "failed to present frame", std::array{DAXA_RESULT_SUCCESS, DAXA_RESULT_SUBOPTIMAL_KHR, DAXA_RESULT_ERROR_OUT_OF_DATE_KHR}); |
| 731 | } |
| 732 | |
| 733 | void Device::collect_garbage() |
| 734 | { |
no test coverage detected