[WebGPU] Use swapchain format when creating shared image
This change passes the swapchain format to where we create the shared image. This is required to be able to render both bgra and rgba, since dawn verifies the texture descriptor of the shared image matches the one requested in the javascript. Bug: 976495 Change-Id: Ief4693649b6e67d363702063afab38fffd290062 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1728343 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by:Kenneth Russell <kbr@chromium.org> Reviewed-by:
Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/master@{#683816}
Showing
Please register or sign in to comment