[webkit-changes] [WebKit/WebKit] 3cfd9d: [WGSL] Add support for constant structs

Tadeu Zagallo noreply at github.com
Tue Feb 20 07:53:01 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3cfd9dd3b52c39e46afe97c1a9460418d3c98b84
      https://github.com/WebKit/WebKit/commit/3cfd9dd3b52c39e46afe97c1a9460418d3c98b84
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-02-20 (Tue, 20 Feb 2024)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantFunctions.h
    M Source/WebGPU/WGSL/TypeCheck.cpp

  Log Message:
  -----------
  [WGSL] Add support for constant structs
https://bugs.webkit.org/show_bug.cgi?id=269710
rdar://123238708

Reviewed by Mike Wyrzykowski.

We already had ConstantStruct, but it was only being used for primitive structs
(like the one returned by frexp), so we just needed to create the constant values
and add the lookup logic to FieldAccessExpression.

* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
(WGSL::TypeChecker::convertValueImpl):

Canonical link: https://commits.webkit.org/275043@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