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

Function createCommandPool

source/RenderGraph/RunnableGraph.cpp:28–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 namespace rungrf
27 {
28 static VkCommandPool createCommandPool( GraphContext & context
29 , std::string const & name )
30 {
31 VkCommandPool result{};
32
33 if ( context.vkCreateCommandPool )
34 {
35 VkCommandPoolCreateInfo createInfo{ VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO
36 , nullptr
37 , VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT
38 , 0 };
39 auto res = context.vkCreateCommandPool( context.device
40 , &createInfo
41 , context.allocator
42 , &result );
43 checkVkResult( res, name + " - CommandPool creation" );
44 crgRegisterObject( context, name, result );
45 }
46
47 return result;
48 }
49
50 static void mergeMipRanges( LayerLayoutStates const & nextLayout
51 , uint32_t currentLayout

Callers 1

RunnableGraphMethod · 0.85

Calls 1

checkVkResultFunction · 0.85

Tested by

no test coverage detected