[webkit-changes] [WebKit/WebKit] 01831b: [WGSL] Update struct syntax

Tadeu Zagallo noreply at github.com
Wed Jan 18 08:02:27 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 01831b153ff02d5f3735bf22f873898b65980532
      https://github.com/WebKit/WebKit/commit/01831b153ff02d5f3735bf22f873898b65980532
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

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

  Log Message:
  -----------
  [WGSL] Update struct syntax
https://bugs.webkit.org/show_bug.cgi?id=250713
<rdar://problem/104338960>

Reviewed by Myles C. Maxfield.

Struct fields are now comma separated instead of semicolon terminated

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

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




More information about the webkit-changes mailing list