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

Function GetCommandBuffers

layers/sync/sync_validation.cpp:2474–2484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2472}
2473
2474static std::vector<CommandBufferConstPtr> GetCommandBuffers(const vvl::DeviceState& device_state,
2475 const VkSubmitInfo2& submit_info) {
2476 // Collected command buffers have the same indexing as in the input VkSubmitInfo2 for reporting purposes.
2477 // If Get query returns null, it is stored in the result array to keep original indexing.
2478 std::vector<CommandBufferConstPtr> command_buffers;
2479 command_buffers.reserve(submit_info.commandBufferInfoCount);
2480 for (const auto& cb_info : vvl::make_span(submit_info.pCommandBufferInfos, submit_info.commandBufferInfoCount)) {
2481 command_buffers.emplace_back(device_state.Get<vvl::CommandBuffer>(cb_info.commandBuffer));
2482 }
2483 return command_buffers;
2484}
2485
2486bool SyncValidator::ProcessQueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo2* pSubmits, VkFence fence,
2487 const ErrorObject& error_obj) {

Callers 1

ProcessQueueSubmitMethod · 0.85

Calls 3

make_spanFunction · 0.85
emplace_backMethod · 0.80
reserveMethod · 0.45

Tested by

no test coverage detected