MCPcopy Create free account
hub / github.com/Ipotrick/Daxa / present_frame

Method present_frame

src/cpp_wrapper.cpp:720–731  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 7

executeMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80

Calls 4

check_resultFunction · 0.85
daxa_dvc_present_frameFunction · 0.85
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected