Fix GetNativePtr on Vulkan

This commit is contained in:
Wojciech Figat
2022-12-14 16:16:43 +01:00
parent 79f4dfcaab
commit 63e7fb85ec
4 changed files with 6 additions and 3 deletions

View File

@@ -1486,7 +1486,10 @@ GPUAdapter* GPUDeviceVulkan::GetAdapter() const
void* GPUDeviceVulkan::GetNativePtr() const
{
return static_cast<void*>(Device);
// Return both Instance and Device as pointer to void*[2]
_nativePtr[0] = (void*)Instance;
_nativePtr[1] = (void*)Device;
return _nativePtr;
}
static int32 GetMaxSampleCount(VkSampleCountFlags counts)