I am using wgpu and I can't find anywhere how to render at a given resolution. I have tried with setting the Surface width and height but that didn't seem to do anything. I also couldn't find any methods in the render or surface structs I am using either.
If you want to render at a lower resolution than the Surface
you're displaying to then you have to
A fair bit of setup, but the second render pass is also a useful opportunity to do things like tone mapping and other screen-space effects.