Skip to content
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

wrong abi for vulkan functions #170

Open
programmerjake opened this issue Sep 26, 2018 · 6 comments
Open

wrong abi for vulkan functions #170

programmerjake opened this issue Sep 26, 2018 · 6 comments
Labels

Comments

@programmerjake
Copy link

in https://github.com/gfx-rs/portability/blob/master/libportability-icd/src/lib.rs#L15, the ICD functions should be extern "system" instead of extern "C" since, on 32-bit windows, they are stdcall. I'm not sure what to do about the hard float requirements when on armv7a android.
See https://github.com/KhronosGroup/Vulkan-Headers/blob/master/include/vulkan/vk_platform.h#L49

@kvark
Copy link
Member

kvark commented Sep 26, 2018

Thanks for filing the issue!
huh, I thought it works on Windows as it is now.
cc @msiglreith

@kvark kvark added the bug label Sep 26, 2018
@programmerjake
Copy link
Author

it works because stdcall doesn't do anything on 64-bit windows.

@kvark
Copy link
Member

kvark commented Sep 27, 2018

Makes sense! Want to make a PR? :)

@programmerjake
Copy link
Author

not at the moment. Also, all the functions that vulkan api users can directly call need to be extern "system" as well

@programmerjake
Copy link
Author

ping

@kvark
Copy link
Member

kvark commented Apr 17, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants