[webkit-changes] [WebKit/WebKit] 65a2d2: [WGSL] Add support for struct constructors

Tadeu Zagallo noreply at github.com
Mon May 15 01:53:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 65a2d2ebf19f54e0bb8067314673cd2320aad781
      https://github.com/WebKit/WebKit/commit/65a2d2ebf19f54e0bb8067314673cd2320aad781
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-05-15 (Mon, 15 May 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/TypeCheck.cpp
    A Source/WebGPU/WGSL/tests/invalid/struct.wgsl
    A Source/WebGPU/WGSL/tests/valid/struct.wgsl

  Log Message:
  -----------
  [WGSL] Add support for struct constructors
https://bugs.webkit.org/show_bug.cgi?id=256704
rdar://109265280

Reviewed by Myles C. Maxfield and Dan Glastonbury.

Add type checking and code generation for struct constructors.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/invalid/struct.wgsl: Added.
* Source/WebGPU/WGSL/tests/valid/struct.wgsl: Added.

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




More information about the webkit-changes mailing list