mach
mach copied to clipboard
Examples: Add "screenshot" functionality to the triangle example
This PR adds the ability to press spacebar on the triangle example to save an offscreen render texture from GPU to CPU then save to an image on disk. This should work fine when using Dawn but will highlight an unimplemented method encoder.CopyTextureToBuffer in sysgpu.
- [X] By selecting this checkbox, I agree to license my contributions to this project under the license(s) described in the LICENSE file, and I have the right to do so or have received permission to do so by an employer or client I am producing work for whom has this right.