diff options
author | Juan Ramos <[email protected]> | 2022-12-27 12:20:23 -0700 |
---|---|---|
committer | Juan Ramos <[email protected]> | 2022-12-27 12:27:55 -0700 |
commit | b232cb2bee65308b0ffbd7439635121b145502ff (patch) | |
tree | b60a892efbc1353bf0d3c59c1880d606f71616c8 /include | |
parent | fc90b60663965aec582d5bf7965f4e6b15173730 (diff) | |
download | Vulkan-Headers-b232cb2bee65308b0ffbd7439635121b145502ff.tar.gz Vulkan-Headers-b232cb2bee65308b0ffbd7439635121b145502ff.zip |
cxx: Use pragma once consistently for non-api headers
Diffstat (limited to 'include')
-rw-r--r-- | include/vulkan/vk_icd.h | 6 | ||||
-rw-r--r-- | include/vulkan/vk_layer.h | 2 | ||||
-rw-r--r-- | include/vulkan/vk_sdk_platform.h | 6 |
3 files changed, 3 insertions, 11 deletions
diff --git a/include/vulkan/vk_icd.h b/include/vulkan/vk_icd.h index fa90fcf..f52bf62 100644 --- a/include/vulkan/vk_icd.h +++ b/include/vulkan/vk_icd.h @@ -19,9 +19,7 @@ * limitations under the License. * */ - -#ifndef VKICD_H -#define VKICD_H +#pragma once #include "vulkan.h" #include <stdbool.h> @@ -258,5 +256,3 @@ typedef struct { VkIcdSurfaceBase base; } VkIcdSurfaceImagePipe; #endif // VK_USE_PLATFORM_FUCHSIA - -#endif // VKICD_H diff --git a/include/vulkan/vk_layer.h b/include/vulkan/vk_layer.h index 3f203f8..090fb83 100644 --- a/include/vulkan/vk_layer.h +++ b/include/vulkan/vk_layer.h @@ -19,12 +19,12 @@ * limitations under the License. * */ +#pragma once /* Need to define dispatch table * Core struct can then have ptr to dispatch table at the top * Along with object ptrs for current and next OBJ */ -#pragma once #include "vulkan_core.h" diff --git a/include/vulkan/vk_sdk_platform.h b/include/vulkan/vk_sdk_platform.h index f192c1c..6e5466d 100644 --- a/include/vulkan/vk_sdk_platform.h +++ b/include/vulkan/vk_sdk_platform.h @@ -18,9 +18,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - -#ifndef VK_SDK_PLATFORM_H -#define VK_SDK_PLATFORM_H +#pragma once #if defined(_WIN32) #ifndef NOMINMAX @@ -67,5 +65,3 @@ #define NOEXCEPT #endif #endif - -#endif // VK_SDK_PLATFORM_H |