• 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 #ifndef RS_ENABLE_VK
12 #include "flutter/fml/macros.h"
13 #endif
14 #include "flutter/vulkan/vulkan_handle.h"
15 #include "flutter/vulkan/vulkan_proc_table.h"
16 
17 namespace vulkan {
18 
19 bool IsDebuggingEnabled();
20 bool ValidationLayerInfoMessagesEnabled();
21 bool ValidationErrorsFatal();
22 
23 std::vector<std::string> InstanceLayersToEnable(const VulkanProcTable& vk);
24 
25 std::vector<std::string> DeviceLayersToEnable(
26     const VulkanProcTable& vk,
27     const VulkanHandle<VkPhysicalDevice>& physical_device);
28 
29 }  // namespace vulkan
30 
31 #endif  // FLUTTER_VULKAN_VULKAN_UTILITIES_H_
32