Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
debug_report_vk.h
Go to the documentation of this file.
1// Copyright 2013 The Flutter Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEBUG_REPORT_VK_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEBUG_REPORT_VK_H_
7
8#include "flutter/fml/macros.h"
10
11namespace impeller {
12
13class CapabilitiesVK;
14
16 public:
17 DebugReportVK(const CapabilitiesVK& caps, const vk::Instance& instance);
18
20
21 bool IsValid() const;
22
23 private:
24 vk::UniqueDebugUtilsMessengerEXT messenger_;
25 bool is_valid_ = false;
26
27 enum class Result {
28 kContinue,
29 kAbort,
30 };
31
32 Result OnDebugCallback(vk::DebugUtilsMessageSeverityFlagBitsEXT severity,
33 vk::DebugUtilsMessageTypeFlagsEXT type,
35
36 static VKAPI_ATTR VkBool32 VKAPI_CALL DebugUtilsMessengerCallback(
39 const VkDebugUtilsMessengerCallbackDataEXT* callback_data,
40 void* user_data);
41
42 DebugReportVK(const DebugReportVK&) = delete;
43
44 DebugReportVK& operator=(const DebugReportVK&) = delete;
45};
46
47} // namespace impeller
48
49#endif // FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_DEBUG_REPORT_VK_H_
The Vulkan layers and extensions wrangler.
VkInstance instance
Definition main.cc:48
#define VKAPI_CALL
Definition vk_platform.h:57
#define VKAPI_ATTR
Definition vk_platform.h:56
VkFlags VkDebugUtilsMessageTypeFlagsEXT
uint32_t VkBool32
Definition vulkan_core.h:94
VkDebugUtilsMessageSeverityFlagBitsEXT