Skip to content

zink: Utilize VK_USE_64_BIT_PTR_DEFINES for VkDescriptorSetLayout and VkFramebuffer handle storage

Vulkan 1.2.174 fixed the issue around the type handling, and now it can be addressed using a simpler standardized and overridable macro.

Now both 32-bit and 64-bit systems can be handled easier.

I added the fallback macro for pre-1.2.174, but it will be ignored on newer Vulkan, so if there are any new architectures, or other changes, it will pick them up automatically.

The macro definition and conditions are copied directly from the vulkan_core.h

For details see:

https://github.com/KhronosGroup/Vulkan-Docs/issues/1431 https://github.com/KhronosGroup/Vulkan-Headers/commit/e1d8c4931d8e4b6c4a8e633c163ed3aa82d6ac1c https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vulkan_core.h#L28

Edited by Witold Baryluk

Merge request reports