Maybe I can figure it out from here
https://sotrh.github.io/learn-wgpu/beginner/tutorial2-surface/#render