| 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 | } |
nothing calls this directly
no test coverage detected