MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / GetLocalQueryState

Function GetLocalQueryState

layers/core_checks/cc_query.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34#include "utils/math_utils.h"
35
36static 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
46bool CoreChecks::PreCallValidateDestroyQueryPool(VkDevice device, VkQueryPool queryPool, const VkAllocationCallbacks* pAllocator,
47 const ErrorObject& error_obj) const {

Callers 3

VerifyQueryIsResetMethod · 0.70

Calls 3

QueryObjectClass · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected