• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2021 The SwiftShader Authors. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //    http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef BENCHMARKS_VULKAN_HEADERS_HPP_
16 #define BENCHMARKS_VULKAN_HEADERS_HPP_
17 
18 #if !defined(USE_HEADLESS_SURFACE)
19 #	define USE_HEADLESS_SURFACE 0
20 #endif
21 
22 #if !defined(_WIN32)
23 // @TODO: implement native Window support for current platform. For now, always use HeadlessSurface.
24 #	undef USE_HEADLESS_SURFACE
25 #	define USE_HEADLESS_SURFACE 1
26 #endif
27 
28 #if defined(_WIN32)
29 #	define VK_USE_PLATFORM_WIN32_KHR
30 #endif
31 #define VULKAN_HPP_DISPATCH_LOADER_DYNAMIC 1
32 #define VULKAN_HPP_NO_NODISCARD_WARNINGS
33 #include <vulkan/vulkan.hpp>
34 
35 #endif  // BENCHMARKS_VULKAN_HEADERS_HPP_
36