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

Method acquire_next_image

src/cpp_wrapper.cpp:985–1005  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

983 }
984
985 auto Swapchain::acquire_next_image() -> ImageId
986 {
987 ImageId ret = {};
988 auto result = daxa_swp_acquire_next_image(r_cast<daxa_Swapchain>(this->object), r_cast<daxa_ImageId *>(&ret));
989 if (result == DAXA_RESULT_ERROR_OUT_OF_DATE_KHR ||
990 result == DAXA_RESULT_ERROR_SURFACE_LOST_KHR ||
991 result == DAXA_RESULT_ERROR_FULL_SCREEN_EXCLUSIVE_MODE_LOST_EXT ||
992 result == DAXA_RESULT_SUBOPTIMAL_KHR)
993 {
994 return {};
995 }
996 else if (result == DAXA_RESULT_SUCCESS)
997 {
998 return ret;
999 }
1000 else
1001 {
1002 check_result(result, "failed to acquire next swapchain image");
1003 }
1004 return {};
1005 }
1006
1007 auto Swapchain::current_acquire_semaphore() const -> BinarySemaphore const &
1008 {

Callers 13

mainFunction · 0.80
mainFunction · 0.80
drawMethod · 0.80
mesh_shader_triFunction · 0.80
drawMethod · 0.80
mainFunction · 0.80
drawMethod · 0.80
on_updateFunction · 0.80
on_updateMethod · 0.80
on_updateFunction · 0.80
drawMethod · 0.80

Calls 2

check_resultFunction · 0.85

Tested by

no test coverage detected