I Tried Coding my own Graphics Library
From Sebastian Lague · · 27 min

The player loads from YouTube only when you click. It uses YouTube's privacy-enhanced mode.
If the video does not play, the owner may have turned off embedding. Watch it on YouTube instead.
Description
My attempt at writing a little graphics and compute library with Vulkan.
Links: Support my work (and get early access to new projects): https://www.patreon.com/SebastianLague Code: https://www.patreon.com/SebastianLague/posts/source-code-164801777 (currently in early access to patrons) Music: https://raw.githubusercontent.com/SebLague/Misc-Project-Info/refs/heads/main/Coding-Adventures/GraphicsLib.txt Learning Resources: https://www.howtovulkan.com/ https://www.khronos.org/blog/understanding-vulkan-synchronization
Chapters: 00:00 Intro 00:53 Initialization and a Blank Window 02:56 Rendering Setup 07:08 Meshes, Buffers, Shaders 09:38 One Triangle Achieved! 14:16 Push Constants 14:48 3D Model and Perspective Projection 17:53 Instancing 19:48 Compute Shaders 23:00 API and Bindings 24:13 Testing and Fixing 26:36 Outro