[webkit-changes] [WebKit/WebKit] 0f12a2: [WGSL] Add parsing for @align and @size attributes

Tadeu Zagallo noreply at github.com
Wed Apr 26 00:54:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0f12a28136bfcb5527d422f90cd2d32921d6ffaf
      https://github.com/WebKit/WebKit/commit/0f12a28136bfcb5527d422f90cd2d32921d6ffaf
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Parser.cpp
    M Tools/TestWebKitAPI/Tests/WGSL/ParserTests.cpp

  Log Message:
  -----------
  [WGSL] Add parsing for @align and @size attributes
https://bugs.webkit.org/show_bug.cgi?id=255942
rdar://108516040

Reviewed by Myles C. Maxfield.

Add support in the parser for the two attributes and expand our tests to be able
to test attributes in structs.

* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseAttribute):
* Tools/TestWebKitAPI/Tests/WGSL/ParserTests.cpp:
(TestWGSLAPI::extractInteger):
(TestWGSLAPI::testStruct):
(TestWGSLAPI::TEST):

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




More information about the webkit-changes mailing list