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

Better support for Vulkan types #11

Open
FlorianRhiem opened this issue Jun 17, 2016 · 1 comment
Open

Better support for Vulkan types #11

FlorianRhiem opened this issue Jun 17, 2016 · 1 comment

Comments

@FlorianRhiem
Copy link
Owner

The GLFW API uses the Vulkan types VkInstance, VkPhysicalDevice, VkAllocationCallbacks, VkSurfaceKHR and VkResult. pyGLFW wraps these types using ctypes.c_void_p (except for VkResult, which is wrapped as a ctypes.c_int). To make these Vulkan types more easily usable, the corresponding types from Python Vulkan wrappers should be supported.

@FlorianRhiem
Copy link
Owner Author

To support realitix/vulkan, pyGLFW 1.12.0 automatically converts CFFI pointers to ctypes.c_void_p for Vulkan objects. An example of using this wrapper with pyGLFW can be found in their repo.

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

No branches or pull requests

1 participant