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.
The GLFW API uses the Vulkan types
VkInstance
,VkPhysicalDevice
,VkAllocationCallbacks
,VkSurfaceKHR
andVkResult
. pyGLFW wraps these types usingctypes.c_void_p
(except forVkResult
, which is wrapped as actypes.c_int
). To make these Vulkan types more easily usable, the corresponding types from Python Vulkan wrappers should be supported.