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

Method CreateCallback

tests/framework/error_monitor.cpp:136–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void ErrorMonitor::CreateCallback(VkInstance instance) noexcept {
137 assert(instance);
138 assert(!debug_obj_);
139
140 assert(vk::CreateDebugUtilsMessengerEXT != nullptr);
141 const VkResult result = vk::CreateDebugUtilsMessengerEXT(instance, &debug_create_info_, nullptr, &debug_obj_);
142 if (result != VK_SUCCESS) {
143 assert(false);
144 debug_obj_ = VK_NULL_HANDLE;
145 }
146}
147
148void ErrorMonitor::DestroyCallback(VkInstance instance) noexcept {
149 assert(instance);

Callers 2

InitFrameworkMethod · 0.80
TEST_FFunction · 0.80

Calls 1

Tested by

no test coverage detected