• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_VULKAN_VULKAN_UTILITIES_H_
6 #define FLUTTER_VULKAN_VULKAN_UTILITIES_H_
7 
8 #include <string>
9 #include <vector>
10 
11 #include "flutter/fml/macros.h"
12 #include "flutter/vulkan/vulkan_handle.h"
13 #include "flutter/vulkan/vulkan_proc_table.h"
14 
15 namespace vulkan {
16 
17 bool IsDebuggingEnabled();
18 bool ValidationLayerInfoMessagesEnabled();
19 bool ValidationErrorsFatal();
20 
21 std::vector<std::string> InstanceLayersToEnable(const VulkanProcTable& vk);
22 
23 std::vector<std::string> DeviceLayersToEnable(
24     const VulkanProcTable& vk,
25     const VulkanHandle<VkPhysicalDevice>& physical_device);
26 
27 }  // namespace vulkan
28 
29 #endif  // FLUTTER_VULKAN_VULKAN_UTILITIES_H_
30