Open rkuemon opened 1 year ago
This is indeed an odd issue. The same thing happens if you try and get the image programmatically from the canvas. I am wondering if it's a WebGPU issue or if the code as is needs some kind of finalization step.
Interestingly, after moving to using a Web Worker with an OffscreenCanvas this issue went away.
I am experiencing this issue as well. Thank you @DustinBrett for the suggestion, modifying the code to use an offscreen canvas worked.
When trying to copy or save an image on the demo webpage, it always takes the previous image instead of the currently displayed one. Additionally, if you attempt to copy or save the first generated image, it results in a transparent 512x512 image instead.
Steps to reproduce:
Expected results:
Actual results:
Environment:
Please investigate this issue, as it prevents users from properly saving or copying the most recent image.