[webkit-changes] [WebKit/WebKit] 480e2f: [WGSL] discard keyword is not supported

Tadeu Zagallo noreply at github.com
Thu Sep 21 09:48:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 480e2fdea469702799f3956d852fba66b6548441
      https://github.com/WebKit/WebKit/commit/480e2fdea469702799f3956d852fba66b6548441
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-09-21 (Thu, 21 Sep 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/Parser.cpp

  Log Message:
  -----------
  [WGSL] discard keyword is not supported
https://bugs.webkit.org/show_bug.cgi?id=261862
rdar://115823568

Reviewed by Mike Wyrzykowski.

Add support for discard statements according to the spec[1].

[1]: https://www.w3.org/TR/WGSL/#discard-statement

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseStatement):

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




More information about the webkit-changes mailing list