[webkit-changes] [WebKit/WebKit] 8561f1: [WebGPU] It is legal to draw zero instances, verti...

mwyrzykowski noreply at github.com
Mon Oct 23 11:45:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 8561f11281d90b07ea3171da80154be98e07f703
      https://github.com/WebKit/WebKit/commit/8561f11281d90b07ea3171da80154be98e07f703
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2023-10-23 (Mon, 23 Oct 2023)

  Changed paths:
    M Source/WebGPU/WebGPU/RenderBundleEncoder.mm
    M Source/WebGPU/WebGPU/RenderPassEncoder.mm

  Log Message:
  -----------
  [WebGPU] It is legal to draw zero instances, vertices, or indices in WebGPU but this results in a validation error
https://bugs.webkit.org/show_bug.cgi?id=263472
<radar://117279454>

Reviewed by Tadeu Zagallo.

The validation error rightfully errors if we attempt to draw zero instances,
vertices, or indices, but this is legal to perform in WebGPU without an error,
so simply return.

* Source/WebGPU/WebGPU/RenderBundleEncoder.mm:
(WebGPU::RenderBundleEncoder::draw):
(WebGPU::RenderBundleEncoder::drawIndexed):
* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::draw):
(WebGPU::RenderPassEncoder::drawIndexed):

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




More information about the webkit-changes mailing list