| 34 | #include "utils/math_utils.h" |
| 35 | |
| 36 | static QueryState GetLocalQueryState(const QueryMap* local_query_to_state_map, VkQueryPool queryPool, uint32_t queryIndex, |
| 37 | uint32_t perf_query_pass) { |
| 38 | QueryObject query = QueryObject(queryPool, queryIndex, perf_query_pass); |
| 39 | |
| 40 | auto iter = local_query_to_state_map->find(query); |
| 41 | if (iter != local_query_to_state_map->end()) return iter->second; |
| 42 | |
| 43 | return QUERYSTATE_UNKNOWN; |
| 44 | } |
| 45 | |
| 46 | bool CoreChecks::PreCallValidateDestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator, |
| 47 | const ErrorObject& error_obj) const { |
no test coverage detected