[webkit-changes] [WebKit/WebKit] dadb67: [WGSL] Use templates for standard library calls

mwyrzykowski noreply at github.com
Wed Aug 21 17:11:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dadb67ce019e3ff492a7cb2750d1f9163d2fad03
      https://github.com/WebKit/WebKit/commit/dadb67ce019e3ff492a7cb2750d1f9163d2fad03
  Author: Mike Wyrzykowski <mwyrzykowski at apple.com>
  Date:   2024-08-21 (Wed, 21 Aug 2024)

  Changed paths:
    M Source/WebGPU/WGSL/BoundsCheck.cpp
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/WGSLShaderModule.h

  Log Message:
  -----------
  [WGSL] Use templates for standard library calls
https://bugs.webkit.org/show_bug.cgi?id=278317
rdar://134260190

Reviewed by Dan Glastonbury.

Ensure calls to min() are inlined.

* Source/WebGPU/WGSL/BoundsCheck.cpp:
(WGSL::BoundsCheckVisitor::visit):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::emitNecessaryHelpers):
* Source/WebGPU/WGSL/WGSLShaderModule.h:
(WGSL::ShaderModule::usesMin const):
(WGSL::ShaderModule::setUsesMin):

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list