[webkit-changes] [WebKit/WebKit] a5dac9: [WGSL] Add support for built-in type aliases

Tadeu Zagallo noreply at github.com
Fri Aug 18 04:14:11 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a5dac911f692bd5c07551c66ba9b56394895e33f
      https://github.com/WebKit/WebKit/commit/a5dac911f692bd5c07551c66ba9b56394895e33f
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-08-18 (Fri, 18 Aug 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/generator/main.rb
    A Source/WebGPU/WGSL/tests/valid/aliases.wgsl

  Log Message:
  -----------
  [WGSL] Add support for built-in type aliases
https://bugs.webkit.org/show_bug.cgi?id=260354
rdar://114033423

Reviewed by Dan Glastonbury.

Add support for the vecN(f|i|u) type aliases.

* 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/generator/main.rb:
* Source/WebGPU/WGSL/tests/valid/aliases.wgsl: Added.

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




More information about the webkit-changes mailing list