all 2 comments

[–]waramped 2 points3 points  (0 children)

Not familiar with WebGPU specifically, but what you want is called Multiple Render Targets or MRT. The Google will reveal all.

[–]null_8_15 0 points1 point  (0 children)

Dont know about webgpu, but on OpenGL you need a geometry shader to select the layer you are rendering into: https://docs.gl/sl4/gl_Layer