[webkit-changes] [WebKit/WebKit] 04fbfa: [WebGPU] Render passes fail if they do not have a ...

mwyrzykowski noreply at github.com
Wed Jan 3 14:24:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 04fbfaa0fd3ee4df6495eefbe60a45f287fc9504
      https://github.com/WebKit/WebKit/commit/04fbfaa0fd3ee4df6495eefbe60a45f287fc9504
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-01-03 (Wed, 03 Jan 2024)

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

  Log Message:
  -----------
  [WebGPU] Render passes fail if they do not have a color attachment
https://bugs.webkit.org/show_bug.cgi?id=266994
<radar://120380804>

Reviewed by Tadeu Zagallo.

Depth-only passes which called setScissorRect resulted in nothing
getting rendered because setScissorRect uses the min of the render target
size with the scissor rect, but we weren't correctly setting the render
target width when there were no color attachments.

Correct this by falling back to the size of the depth-stencil texture
when the render target width is zero.

* Source/WebGPU/WebGPU/RenderPassEncoder.mm:
(WebGPU::RenderPassEncoder::RenderPassEncoder):

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




More information about the webkit-changes mailing list