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

Function createQueryPool

source/RenderGraph/RunnableGraph.cpp:209–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 2

RunnableGraphMethod · 0.85
FramePassTimerMethod · 0.85

Calls 1

checkVkResultFunction · 0.85

Tested by

no test coverage detected