| 207 | //************************************************************************************************ |
| 208 | |
| 209 | VkQueryPool createQueryPool( GraphContext & context |
| 210 | , std::string const & name |
| 211 | , uint32_t passesCount ) |
| 212 | { |
| 213 | VkQueryPool result{}; |
| 214 | |
| 215 | if ( context.vkCreateQueryPool ) |
| 216 | { |
| 217 | VkQueryPoolCreateInfo createInfo{ VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO |
| 218 | , nullptr |
| 219 | , 0u |
| 220 | , VK_QUERY_TYPE_TIMESTAMP |
| 221 | , passesCount |
| 222 | , 0u }; |
| 223 | auto res = context.vkCreateQueryPool( context.device |
| 224 | , &createInfo |
| 225 | , context.allocator |
| 226 | , &result ); |
| 227 | checkVkResult( res, name + " - VkQueryPool creation" ); |
| 228 | crgRegisterObject( context, name, result ); |
| 229 | } |
| 230 | |
| 231 | return result; |
| 232 | } |
| 233 | |
| 234 | //************************************************************************************************ |
| 235 |
no test coverage detected