MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / Present

Method Present

tests/framework/binding.cpp:838–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

836}
837
838VkResult Queue::Present(const Swapchain& swapchain, uint32_t image_index, const Semaphore& wait_semaphore,
839 void* present_info_pnext) {
840 VkPresentInfoKHR present = vku::InitStructHelper(present_info_pnext);
841 if (wait_semaphore.initialized()) {
842 present.waitSemaphoreCount = 1;
843 present.pWaitSemaphores = &wait_semaphore.handle();
844 }
845 present.swapchainCount = 1;
846 present.pSwapchains = &swapchain.handle();
847 present.pImageIndices = &image_index;
848 VkResult result = vk::QueuePresentKHR(handle(), &present);
849 return result;
850}
851
852VkResult Queue::Wait() {
853 VkResult result = vk::QueueWaitIdle(handle());

Callers 7

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 3

initializedMethod · 0.80
QueuePresentKHRFunction · 0.50
handleMethod · 0.45

Tested by

no test coverage detected