32 bit safe code

In order to easily add 32 bit support, this cl adds a
header which essentially uses a union to make sure that
even when we have 32 bit pointers, the Vulkan handles are
64 bit.

This change should be noop.

Bug b/129979580 b/127920555

Change-Id: I54254929186584ec4544a1da5a7def7cf56e392e
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31070
Presubmit-Ready: Alexis Hétu <sugoi@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/Vulkan/VkEvent.hpp b/src/Vulkan/VkEvent.hpp
index d56da28..34309e6 100644
--- a/src/Vulkan/VkEvent.hpp
+++ b/src/Vulkan/VkEvent.hpp
@@ -72,7 +72,7 @@
 
 static inline Event* Cast(VkEvent object)
 {
-	return reinterpret_cast<Event*>(object);
+	return reinterpret_cast<Event*>(object.get());
 }
 
 } // namespace vk