-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
document calling convention to load() better, PfnGetInstanceProcAddr may not be the right calling convention for most #30
Comments
It's valid for |
Ahhh, I see, that's very interesting. I didn't realize Given that, I would suggest maybe some documentation around this as it seems highly likely others will fall into the same trap of casting to |
Implemented in c169871 |
vulkan-zig currently declares
vk.PfnGetInstanceProcAddr
as using the vulkan calling convention:But this is not a Vulkan proc, it's a C proc which returns Vulkan procs and should use
callconv(.C)
. For example, GLFW's C API does not defineglfwGetInstanceProcAddress
as using the Vulkan calling convention, but rather the standard C calling conventionFor now, this just happens to work because
vulkan_call_conv
is the same ascallconv(.C)
on all platforms except windows-i386 (.Stdcall
) and android-arm (.AAPCSVFP
) which have presumably not been tested with zig-vulkan.The text was updated successfully, but these errors were encountered: