mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-17 00:47:13 +00:00
Update Vulkan headers to v1.1.115
This updates the content of third_party/khronos/vulkan
to match the upstream v1.1.115 headers.
+ update third_party:vulkan_headers to define the VK_USE_PLATFORM_XXX
macros directly, since this better matches the upstream BUILD.gn
file behaviour.
NOTE: A better patch would use a DEPS entry to get the Vulkan
headers. That's exactly what [1] does, but fails to
integrate with Chromium due to its messy situation
regarding the use of vulkan headers.
Once the Chromium situation is fixed, it will be possible
to remove third_party/khronos/vulkan entirely and rely
on a DEPS entry.
[1] https://dawn-review.googlesource.com/c/dawn/+/9080
BUG=NONE
Change-Id: Id9a3be3e079119368236c0323823e36bec1a056d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/9082
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Austin Eng <enga@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
0326b8012b
commit
ee0fa175a3
@@ -145,20 +145,6 @@ class alignas(kNativeVkHandleAlignment) VkNonDispatchableHandle {
|
||||
static_assert(sizeof(object) == sizeof(object##Native), ""); \
|
||||
static_assert(alignof(object) == kNativeVkHandleAlignment, "");
|
||||
|
||||
// Ensure platform-specific extensions are declared appropriately.
|
||||
#if defined(DAWN_PLATFORM_LINUX)
|
||||
# define VK_USE_PLATFORM_XLIB_KHR
|
||||
# define VK_USE_PLATFORM_XCB_KHR
|
||||
// NOTE: For now the line below is undefined to take care of systems that don't
|
||||
// have the Wayland headers installed on the system.
|
||||
// # define VK_USE_PLATFORM_WAYLAND_KHR
|
||||
#elif defined(DAWN_PLATFORM_WINDOWS)
|
||||
# define VK_USE_PLATFORM_WIN32_KHR
|
||||
#elif defined(DAWN_PLATFORM_ANDROID)
|
||||
# define VK_USE_PLATFORM_ANDROID_KHR
|
||||
#elif defined(DAWN_PLATFORM_FUCHSIA)
|
||||
# define VK_USE_PLATFORM_FUCHSIA
|
||||
#endif
|
||||
# include <vulkan/vulkan.h>
|
||||
|
||||
// VK_NULL_HANDLE is defined to 0 but we don't want our handle type to compare to arbitrary
|
||||
|
||||
Reference in New Issue
Block a user