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

Method SetCallState

layers/state_tracker/device_state.cpp:23–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace vvl {
22
23void PhysicalDevice::SetCallState(Func func, CallState new_state) {
24 WriteLockGuard guard(call_state_lock_);
25 auto result = call_state_.emplace(func, new_state);
26 if (!result.second) {
27 if (result.first->second < new_state) {
28 result.first->second = new_state;
29 }
30 }
31}
32
33void PhysicalDevice::SetCallState(Func func, bool has_ptr) {
34 CallState new_state = has_ptr ? CallState::QueryDetails : CallState::QueryCount;

Calls 1

emplaceMethod · 0.45

Tested by

no test coverage detected