realitix / vulkan

The ultimate Python binding for Vulkan API
Apache License 2.0
505 stars 46 forks source link

Improve pyGLFW example #64

Closed FlorianRhiem closed 4 years ago

FlorianRhiem commented 4 years ago

I have updated pyGLFW so that CFFI pointers for Vulkan objects will be converted to ctypes pointers automatically. This PR removes the now unnecessary conversion from the pyGLFW example.

As part of testing this change, I noticed that the example as it is uses the pipeline list returned by vkCreateGraphicsPipelines as a graphics pipeline instead of using the actual graphics pipeline object, causing the example to crash. This is fixed in this PR as well.

realitix commented 4 years ago

Hello @FlorianRhiem , Nice PR thanks !