MCPcopy Create free account
hub / github.com/android/ndk-samples / setupDebugMessenger

Method setupDebugMessenger

hello-vulkan/app/src/main/cpp/hellovk.h:639–649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637}
638
639void HelloVK::setupDebugMessenger() {
640 if (!enableValidationLayers) {
641 return;
642 }
643
644 VkDebugUtilsMessengerCreateInfoEXT createInfo{};
645 populateDebugMessengerCreateInfo(createInfo);
646
647 VK_CHECK(CreateDebugUtilsMessengerEXT(instance, &createInfo, nullptr,
648 &debugMessenger));
649}
650
651bool HelloVK::checkValidationLayerSupport() {
652 uint32_t layerCount;

Callers

nothing calls this directly

Tested by

no test coverage detected