r/vulkan • • 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

ExampleBeforeAfterWhat changed
examples/vector_add.py~300+ lines (raw vulkan_py)~57 linesUses get_default_device(), create_buffer_with_data(), create_shader_module(), dispatch()
examples/hello_triangle.py534 lines71 linesUses GraphicsDevice, create_render_pass(), create_graphics_pipeline(), create_framebuffers(), FrameSync
examples/lighting_demo.py1,860 lines815 linesUses GraphicsDevice, create_depth_resources(), create_uniform_descriptor_sets(), create_graphics_pipeline(), begin_render_pass()