mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-03 13:11:34 +00:00
Fix dawn_native MSVC x86 build
Bug: dawn:1590 Change-Id: I4559a664fde1ee0ebcf7eae44a752d1977a63e24 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109200 Reviewed-by: Austin Eng <enga@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
parent
a70e365313
commit
e4270d111b
@ -124,8 +124,13 @@ void SetDebugName(Device* device,
|
|||||||
detail::VkHandle<Tag, HandleType> objectHandle,
|
detail::VkHandle<Tag, HandleType> objectHandle,
|
||||||
const char* prefix,
|
const char* prefix,
|
||||||
std::string label = "") {
|
std::string label = "") {
|
||||||
SetDebugNameInternal(device, GetVkObjectType(objectHandle),
|
uint64_t handle;
|
||||||
reinterpret_cast<uint64_t>(objectHandle.GetHandle()), prefix, label);
|
if constexpr (std::is_same_v<HandleType, uint64_t>) {
|
||||||
|
handle = objectHandle.GetHandle();
|
||||||
|
} else {
|
||||||
|
handle = reinterpret_cast<uint64_t>(objectHandle.GetHandle());
|
||||||
|
}
|
||||||
|
SetDebugNameInternal(device, GetVkObjectType(objectHandle), handle, prefix, label);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handles like VkQueue and VKDevice require a special path because they are dispatchable, so
|
// Handles like VkQueue and VKDevice require a special path because they are dispatchable, so
|
||||||
|
Loading…
x
Reference in New Issue
Block a user