1 // Copyright 2019 The Amber Authors. 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 AMBER_VULKAN_HEADER_H_ 16 #define AMBER_VULKAN_HEADER_H_ 17 18 #if AMBER_CTS_VULKAN_HEADER 19 20 #pragma clang diagnostic push 21 #pragma clang diagnostic ignored "-Wreserved-id-macro" 22 #include "vkDefs.h" 23 #pragma clang diagnostic pop 24 25 #else // AMBER_CTS_VULKAN_HEADER 26 27 #pragma clang diagnostic push 28 #pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" 29 // Note, VK_NO_PROTOTYPES is used by vulkan/vulkan.h to disable defining 30 // all of the vk* methods. 31 #define VK_NO_PROTOTYPES 32 #include "vulkan/vulkan.h" 33 #undef VK_NO_PROTOTYPES 34 #pragma clang diagnostic pop 35 36 #endif // AMBER_CTS_VULKAN_HEADER 37 38 #endif // AMBER_VULKAN_HEADER_H_ 39