mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-01 04:01:26 +00:00
Add std:: to nullptr_t
Fixes compiler error on Linux about bare nullptr_t not existing. Bug: Change-Id: I1eb97d40e9ff564775d4ec7bbc54430481475f34 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/18320 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Wagner <bungeman@chromium.org>
This commit is contained in:
parent
c602c86907
commit
a0d8362e00
@ -174,7 +174,7 @@ namespace dawn_native { namespace vulkan {
|
||||
// Redefine VK_NULL_HANDLE for better type safety where possible.
|
||||
#undef VK_NULL_HANDLE
|
||||
#if defined(DAWN_PLATFORM_64_BIT)
|
||||
static constexpr nullptr_t VK_NULL_HANDLE = nullptr;
|
||||
static constexpr std::nullptr_t VK_NULL_HANDLE = nullptr;
|
||||
#elif defined(DAWN_PLATFORM_32_BIT)
|
||||
static constexpr uint64_t VK_NULL_HANDLE = 0;
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user