pyGLFW icon indicating copy to clipboard operation
pyGLFW copied to clipboard

Better support for Vulkan types

Open FlorianRhiem opened this issue 8 years ago • 1 comments

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 avatar Jun 17 '16 17:06 FlorianRhiem

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.

FlorianRhiem avatar Jul 10 '20 18:07 FlorianRhiem