Open shrekshao opened 2 years ago
https://www.w3.org/TR/webgpu/#GPUCanvasAlphaMode
(GPUCanvasAlphaMode) selects how the contents of the canvas will be interpreted when read, when rendered to the screen or used as an image source (in drawImage, toDataURL, etc.)
We have reftests for "canvas read when rendered to the screen", we still need reftests for "canvas read when used as an image source."
Operations include drawImage, toDataURL, texImage2D, toBlob etc.
Now it seems best to expand the readbackFromWebGPUCanvas.spec.ts
with
Finally tested and filed https://github.com/gpuweb/gpuweb/issues/3295
@shrekshao this issue is still marked "started". Do you remember if it was done or was there still some work to do?
Seems that the TODOs on kAllCanvasTypes
are still missing
I'll unmark it as "Started" and unassign you for now, but feel free to reassign yourself if you end up working on it
https://github.com/gpuweb/gpuweb/pull/2905