Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: bbf7224ca0edd26f16133946978a64999c99cbfc
      
https://github.com/WebKit/WebKit/commit/bbf7224ca0edd26f16133946978a64999c99cbfc
  Author: Tadeu Zagallo <[email protected]>
  Date:   2024-01-25 (Thu, 25 Jan 2024)

  Changed paths:
    M Source/WebGPU/WGSL/Parser.cpp
    M Source/WebGPU/WGSL/TypeCheck.cpp
    M Source/WebGPU/WGSL/tests/valid/attributes.wgsl
    M Source/WebGPU/WGSL/tests/valid/constants.wgsl

  Log Message:
  -----------
  [WGSL] Validate variable declarations
https://bugs.webkit.org/show_bug.cgi?id=268013
rdar://121435952

Reviewed by Mike Wyrzykowski.

Add validation for variable declaration according to the spec [1]. This checks
that varibles have the correct attributes, variable initialization, etc.

[1]: https://www.w3.org/TR/WGSL/#var-and-value

* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseVariableQualifier):
* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visitVariable):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to