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

  Changed paths:
    M Source/WebGPU/WebGPU/RenderPassEncoder.mm
    A Websites/webkit.org/demos/webgpu/hello-cube-indirect.html
    A Websites/webkit.org/demos/webgpu/scripts/hello-cube-indirect.js

  Log Message:
  -----------
  [WebGPU] Indirect buffer support for render pipeline
https://bugs.webkit.org/show_bug.cgi?id=249252
<radar://103240607>

Reviewed by Dean Jackson.

Implement indirect drawing when the number of primitives or indices is not
known until runtime.

* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::drawIndexedIndirect):
(WebGPU::RenderPassEncoder::drawIndirect):
Call into Metal API.

* Websites/webkit.org/demos/webgpu/hello-cube-indirect.html: Added.
* Websites/webkit.org/demos/webgpu/scripts/hello-cube-indirect.js: Added.
(async helloCube.frameUpdate):
(async helloCube):
Add test demo.

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


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

Reply via email to