1244{
1247 return;
1248 }
1249
1250 if (!it->second.timestamp_pool) {
1251 vk::QueryPoolCreateInfo pool_info;
1252 pool_info.queryType = vk::QueryType::eTimestamp;
1253 pool_info.queryCount = 128;
1254 it->second.timestamp_pool =
get_device().createQueryPool(pool_info);
1255 }
1256
1257 auto query_index = static_cast<uint32_t>(it->second.timestamp_queries.size() * 2);
1258 it->second.timestamp_queries[label] = query_index;
1259
1260 it->second.cmd.resetQueryPool(it->second.timestamp_pool, query_index, 2);
1261 it->second.cmd.writeTimestamp(vk::PipelineStageFlagBits::eTopOfPipe, it->second.timestamp_pool, query_index);
1262}
vk::Device get_device() const
Get logical device handle.
std::unordered_map< CommandBufferID, CommandBufferState > m_command_buffers