VulkanRenderer: Fix 32bits compilation

This commit is contained in:
Lynix
2023-01-02 22:11:00 +01:00
parent ed9035318f
commit cc1246dcac
8 changed files with 20 additions and 12 deletions

View File

@@ -497,6 +497,18 @@ namespace Nz
NazaraError("Unhandled VertexInputRate 0x" + NumberToString(UnderlyingCast(inputRate), 16));
return {};
}
template<typename T>
UInt64 VulkanHandleToInteger(T handle)
{
if constexpr (std::is_pointer_v<T>)
return static_cast<UInt64>(reinterpret_cast<std::uintptr_t>(handle));
else
{
static_assert(std::is_integral_v<T>);
return static_cast<UInt64>(handle);
}
}
}
#include <Nazara/VulkanRenderer/DebugOff.hpp>