-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Vulkan support #353
Comments
I think both packages need to type alias the handles as uintptr which requires Go 1.9. Maybe there's a hack that can be used for forcing a cast between the two types but I have no clue what the hack is.. |
This isn't quite solved yet. The only function I couldn't test properly is VulkanCreateSurface. I'll need to make sure go-sdl2 can interface with vulkan-go first. I'll probably have to change the Go wrapper function signature to take a uintptr instead of the actual Vk handle. |
Doesnt SDL support Vulkan natively? |
It does, but you need another library to load and use the Vulkan functions. |
My patches are now in vulkan-go/vulkan, you can test Vulkan support yourself with |
Support for Vulkan functions. Compatibility with https://github.com/vulkan-go/vulkan would be very nice. Could Vulkan handles be transferred between packages as uintptrs? I'm not sure how two separate CGO-enabled packages will handle the same types.
The text was updated successfully, but these errors were encountered: