pyGLFW
pyGLFW copied to clipboard
Better support for Vulkan types
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.
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.