Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 2eaacb29a834ef362921d003b78d73e1354fbcf7 https://github.com/WebKit/WebKit/commit/2eaacb29a834ef362921d003b78d73e1354fbcf7 Author: Mike Wyrzykowski <mwyrzykow...@apple.com> Date: 2022-12-20 (Tue, 20 Dec 2022)
Changed paths: M Source/WebGPU/WebGPU/RenderPassEncoder.h M Source/WebGPU/WebGPU/RenderPassEncoder.mm A Websites/webkit.org/demos/webgpu/hello-indexed-cube.html A Websites/webkit.org/demos/webgpu/scripts/hello-indexed-cube.js Log Message: ----------- [WebGPU] index buffer support https://bugs.webkit.org/show_bug.cgi?id=249238 <radar://103240396> Reviewed by Myles C. Maxfield and Dean Jackson. Implement index buffer support and add a test case. Also implement setScissorRect. Everything was implemented except the call in WebGPU. * Source/WebGPU/WebGPU/RenderPassEncoder.h: * Source/WebGPU/WebGPU/RenderPassEncoder.mm: (WebGPU::RenderPassEncoder::drawIndexed): (WebGPU::RenderPassEncoder::setIndexBuffer): Call respective metal commands for drawing indexed primitives. (WebGPU::RenderPassEncoder::setScissorRect): Implement setScissorRect with coordinates specified in pixels. * Websites/webkit.org/demos/webgpu/hello-indexed-cube.html: Added. * Websites/webkit.org/demos/webgpu/scripts/hello-indexed-cube.js: Added. (async helloCube.frameUpdate): (async helloCube): Rotating cube with 8 vertices and 36 indices. Canonical link: https://commits.webkit.org/258168@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes