5min chapter

Changelog Master Feed cover image

Goodbye Atom. Hello Zed. (Changelog Interviews #531)

Changelog Master Feed

CHAPTER

How to Write a 2D UI on the GPU

We started with this Rust crate called Pathfinder, which is Patrick Walton wrote it. It's really cool ideas in there about doing like Bezier curve 2D rendering on the GPU. But that was too slow and so finally we just boiled it down to what do we actually need to draw? Like what is a 2D UI? And it boils down to some rounded corner boxes with borders and padding,. We need to get glyphs and icons on the screen. So we ended up just like writing our own shader code. To this day, it's like we have like maybe 600 lines of shaders code. The code we have to run on the GPUs are much simpler than a 3D

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode