[webkit-changes] [WebKit/WebKit] dfe14f: [WGSL] Implement parsing of constant declarations ...

Dan Glastonbury noreply at github.com
Wed Feb 15 18:21:35 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: dfe14f41830df0fe73ba99c50f916305305b84e7
      https://github.com/WebKit/WebKit/commit/dfe14f41830df0fe73ba99c50f916305305b84e7
  Author: Dan Glastonbury <djg at apple.com>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTValue.h
    M Source/WebGPU/WGSL/Lexer.cpp
    M Source/WebGPU/WGSL/Parser.cpp
    M Source/WebGPU/WGSL/ParserPrivate.h
    M Source/WebGPU/WGSL/Token.cpp
    M Source/WebGPU/WGSL/Token.h
    M Source/WebGPU/WGSL/WGSLShaderModule.h
    M Tools/TestWebKitAPI/Tests/WGSL/LexerTests.cpp
    M Tools/TestWebKitAPI/Tests/WGSL/ParserTests.cpp

  Log Message:
  -----------
  [WGSL] Implement parsing of constant declarations and statements
https://bugs.webkit.org/show_bug.cgi?id=252288
rdar://105480283

Reviewed by Tadeu Zagallo.

Implement parsing of constant declarations and statements according to WGSL spec.

* Source/WebGPU/WGSL/AST/ASTValue.h:
* Source/WebGPU/WGSL/Lexer.cpp:
(WGSL::Lexer<T>::lex):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseGlobalDecl):
(WGSL::Parser<Lexer>::parseStatement):
(WGSL::Parser<Lexer>::parseConstantValue):
* Source/WebGPU/WGSL/ParserPrivate.h:
* Source/WebGPU/WGSL/Token.cpp:
(WGSL::toString):
* Source/WebGPU/WGSL/Token.h:
* Source/WebGPU/WGSL/WGSLShaderModule.h:
(WGSL::ShaderModule::values):
* Tools/TestWebKitAPI/Tests/WGSL/LexerTests.cpp:
(TestWGSLAPI::TEST):
* Tools/TestWebKitAPI/Tests/WGSL/ParserTests.cpp:
(TestWGSLAPI::TEST):

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




More information about the webkit-changes mailing list