Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5b954c5707fd762b05170c63ab9a4abda2ae4a98
      
https://github.com/WebKit/WebKit/commit/5b954c5707fd762b05170c63ab9a4abda2ae4a98
  Author: Mike Wyrzykowski <mwyrzykow...@apple.com>
  Date:   2022-12-20 (Tue, 20 Dec 2022)

  Changed paths:
    M Source/WebCore/Modules/WebGPU/GPU.cpp
    M Websites/webkit.org/demos/webgpu/scripts/textured-cube.js

  Log Message:
  -----------
  [WebGPU] GPU::getPreferredCanvasFormat() should return BGRA8
https://bugs.webkit.org/show_bug.cgi?id=249359
<radar://103380144>

Reviewed by Dean Jackson.

As noted https://github.com/WebKit/WebKit/pull/2337#discussion_r922583630, we
should prefer BGRA8 for Metal.

* Source/WebCore/Modules/WebGPU/GPU.cpp:
(WebCore::GPU::getPreferredCanvasFormat):
Prefer BGRA8.

* Websites/webkit.org/demos/webgpu/scripts/textured-cube.js:
(async helloCube.frameUpdate):
(async helloCube):
Update textured-cube demo to use the preferred canvas format.

Canonical link: https://commits.webkit.org/258158@main


_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to