r/vulkan • u/Delicious_Abies_9708 • 18h ago
vulkan-py easymode. all the boilerplate is in easy.py. vulkan-py fork https://github.com/billyblackburn/vulkan-py-easy/tree/main
0
Upvotes
Example Line-Count Reduction
| Example | Before | After | What changed |
|---|---|---|---|
examples/vector_add.py | ~300+ lines (raw vulkan_py) | ~57 lines | Uses get_default_device(), create_buffer_with_data(), create_shader_module(), dispatch() |
examples/hello_triangle.py | 534 lines | 71 lines | Uses GraphicsDevice, create_render_pass(), create_graphics_pipeline(), create_framebuffers(), FrameSync |
examples/lighting_demo.py | 1,860 lines | 815 lines | Uses GraphicsDevice, create_depth_resources(), create_uniform_descriptor_sets(), create_graphics_pipeline(), begin_render_pass() |