You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that according to the WebGPU spec, canvas readback (via drawImage etc.) should interact with device loss (and destroy()) in the same way I described in #3251:
After the device is lost but before calling getCurrentTexture, it should keep returning the last displayed frame
After the device is lost and after calling getCurrentTexture, it should return:
a solid black image, if configure()d as opaque
a blank transparent image, if configure()d as transparent
Rough test cases:
Render something, destroy the device, (maybe check readback,) wait a few frames, check readback again
Render something, destroy the device, wait a few frames, call getCurrentTexture, check readback, wait a few frames, check readback again
The text was updated successfully, but these errors were encountered:
For the destroy-readback test, I think we'll add a "parameter" to most of these tests for whether the device should be destroyed before the readback, which shouldn't change the readback result. (For simplicity we don't really need to check readback twice like I wrote above.)
For the destroy-getCurrentTexture-readback test, I'm not sure how to add those to the existing test cases. We will want to check readback twice for these - readbacks in the same frame and readbacks in future frames are likely to have different implementations that both need to be tested.
I believe that according to the WebGPU spec, canvas readback (via drawImage etc.) should interact with device loss (and destroy()) in the same way I described in #3251:
Rough test cases:
The text was updated successfully, but these errors were encountered: