MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / wait_frame

Method wait_frame

samples/performance/wait_idle/wait_idle.cpp:74–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72{}
73
74void WaitIdle::CustomRenderContext::wait_frame()
75{
76 // POI
77 //
78 // If wait idle is enabled, wait using vkDeviceWaitIdle
79
80 vkb::rendering::RenderFrameC &frame = get_active_frame();
81
82 if (wait_idle_enabled)
83 {
84 get_device().wait_idle();
85 }
86
87 frame.reset();
88}
89
90void WaitIdle::draw_gui()
91{

Callers

nothing calls this directly

Calls 2

wait_idleMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected