Hacker News with Generative AI: Graphics Programming

C Compiler to SPIR-V (github.com/heroseh)
HCC is a C compiler that allows you to compile your C codebase (with limitations) to SPIR-V for the Vulkan graphics API. This means you can share struct's, enum's and functions between your CPU & GPU code. HCC targets the future of GPU programming so is designed around features such as bindless resources and scalar alignment. This makes it easier to interop with the GPU and focus on writing shader code without writing your own shader build system.
Texture-Less Text Rendering (poniesandlight.co.uk)
Sometimes, all you want is to quickly print some text into a Renderpass. But traditionally, drawing text requires you first to render all possible glyphs of a font into an atlas, to bind this atlas as a texture, and then to render glyphs one by one by drawing triangles on screen, with every triangle picking the correct glyph from the font atlas texture.
The best darn grid shader yet (2023) (medium.com)
For as long as I’ve been writing shaders, there’s been one specific shader I’ve always tried to write. And I’ve always failed at it for reason I could never fully understand. I’d wait a few years and try again with my new level of knowledge, get closer, and fail again. That goal?
How to get started in Graphics Programming in 2024? (twitter.com)
Writing Portable Rendering Code with Nvrhi (nvidia.com)
Modern graphics APIs, such as Direct3D 12 and Vulkan, are designed to provide relatively low-level access to the GPU and eliminate the GPU driver overhead associated with API translation.
DirectX Adopting SPIR-V as the Interchange Format of the Future (microsoft.com)
Today the Direct3D and HLSL teams are excited to share some insight into the next big step for GPU programmability. Once Shader Model 7 is released, DirectX 12 will accept shaders compiled to SPIR-V™.
GPU Debug Scopes (wunkolo.github.io)
Rendering APIs these days tend to capture their gpu workloads into a serialized form such as a command-buffer or command-list to be dispatched at a later time into a work-queue.
Vulkan Tutorial (vulkan-tutorial.com)
Ubershaders: A Ridiculous Solution to an Impossible Problem (2017) (dolphin-emu.org)
Life and Death of a Graphics Programmer (elopezr.com)