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,
|
||||
const char* prefix,
|
||||
std::string label = "") {
|
||||
SetDebugNameInternal(device, GetVkObjectType(objectHandle),
|
||||
reinterpret_cast<uint64_t>(objectHandle.GetHandle()), prefix, label);
|
||||
uint64_t handle;
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue