| 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 |
no test coverage detected