Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 1759715e89bc1e69e397107df86d9110392a1698
      
https://github.com/WebKit/WebKit/commit/1759715e89bc1e69e397107df86d9110392a1698
  Author: Tadeu Zagallo <[email protected]>
  Date:   2023-06-14 (Wed, 14 Jun 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/tests/valid/packing.wgsl
    M Source/WebGPU/WGSL/tests/valid/type-promotion.wgsl

  Log Message:
  -----------
  [WGSL] Serialize unsigned literals with suffix
https://bugs.webkit.org/show_bug.cgi?id=258030
rdar://110713183

Reviewed by Mike Wyrzykowski.

We serialize array and struct constructors with initializer lists, which 
disallow
implicit narrowing, so we should emit literals with the correct suffix.

* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/tests/valid/packing.wgsl:
* Source/WebGPU/WGSL/tests/valid/type-promotion.wgsl:

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


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

Reply via email to