[webkit-changes] [WebKit/WebKit] 77fd27: [WGSL] Add matrix type aliases

Tadeu Zagallo noreply at github.com
Tue Sep 19 02:21:03 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 77fd278d2cae1b624ef1a6331943037ee3e60963
      https://github.com/WebKit/WebKit/commit/77fd278d2cae1b624ef1a6331943037ee3e60963
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-09-19 (Tue, 19 Sep 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/TypeDeclarations.rb
    M Source/WebGPU/WGSL/tests/valid/aliases.wgsl

  Log Message:
  -----------
  [WGSL] Add matrix type aliases
https://bugs.webkit.org/show_bug.cgi?id=261675
rdar://115652287

Reviewed by Dan Glastonbury.

Add aliases for all matrix sizes such that matCxRf = matCxR<f32>

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/TypeDeclarations.rb:
* Source/WebGPU/WGSL/tests/valid/aliases.wgsl:

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




More information about the webkit-changes mailing list