MCPcopy Create free account
hub / github.com/DragonJoker/RenderGraph / doCreateCommandBuffer

Method doCreateCommandBuffer

source/RenderGraph/RunnablePass.cpp:617–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615 }
616
617 VkCommandBuffer RunnablePass::doCreateCommandBuffer( std::string const & suffix )
618 {
619 VkCommandBuffer result{};
620
621 if ( m_context.vkAllocateCommandBuffers )
622 {
623 VkCommandBufferAllocateInfo allocateInfo{ VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO
624 , nullptr
625 , m_graph.getCommandPool()
626 , VK_COMMAND_BUFFER_LEVEL_PRIMARY
627 , 1u };
628 auto res = m_context.vkAllocateCommandBuffers( m_context.device
629 , &allocateInfo
630 , &result );
631 checkVkResult( res, m_pass.getGroupName() + suffix + " - CommandBuffer allocation" );
632 crgRegisterObject( m_context, m_pass.getGroupName() + suffix, result );
633 }
634
635 return result;
636 }
637}

Callers

nothing calls this directly

Calls 3

checkVkResultFunction · 0.85
getCommandPoolMethod · 0.80
getGroupNameMethod · 0.80

Tested by

no test coverage detected