flâneur — a map of the web's best reading

First Color - Learn WebGPU for C++ documentation

eliemichel.github.io · 2,704 words · saved by 1 readers

Resulting code: step020 The goal of this chapter is to draw a solid color all over our window. This will be the occasion to introduce 3 new concepts of WebGPU: Swap Chains, Texture Views, Render Pa...

First Color 🟢 ¶ Resulting code: step025 The goal of this chapter is to draw a solid color over our entire window. To do so, we add the following steps: We must first configure the surface of our window. Then on each frame we get the Surface Texture to draw onto. And finally we create a Render Pass to effectively draw something. Surface configuration ¶ At the end of the previous chapter, we introduced the surface object as the link between the OS window (managed by GLFW) and the WebGPU instance. However, this surface needs to be configured before we can draw on it. To understand why, we need t

Explore this link on the map →

related reading