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

Method Submit2

tests/framework/binding.cpp:595–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

593}
594
595VkResult Queue::Submit2(const CommandBuffer& cmd, const Fence& fence, bool use_khr) {
596 VkCommandBufferSubmitInfo cb_info = vku::InitStructHelper();
597 cb_info.commandBuffer = cmd;
598
599 VkSubmitInfo2 submit = vku::InitStructHelper();
600 submit.commandBufferInfoCount = cmd.initialized() ? 1 : 0;
601 submit.pCommandBufferInfos = &cb_info;
602
603 VkResult result;
604 if (use_khr) {
605 result = vk::QueueSubmit2KHR(handle(), 1, &submit, fence);
606 } else {
607 result = vk::QueueSubmit2(handle(), 1, &submit, fence);
608 }
609 return result;
610}
611
612VkResult Queue::Submit2(const std::vector<VkCommandBuffer>& cmds, const Fence& fence, bool use_khr) {
613 std::vector<VkCommandBufferSubmitInfo> cmd_submit_infos;

Callers 15

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
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 7

QueueSubmit2KHRFunction · 0.85
QueueSubmit2Function · 0.85
initializedMethod · 0.80
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected