[webkit-changes] [WebKit/WebKit] 42abab: [WGSL] shader, execution, expression, call, builtin, bi...

Tadeu Zagallo noreply at github.com
Wed Jan 10 23:35:03 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 42abab73c918cee6c9c8371a9443efa8a8778ec5
      https://github.com/WebKit/WebKit/commit/42abab73c918cee6c9c8371a9443efa8a8778ec5
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-01-10 (Wed, 10 Jan 2024)

  Changed paths:
    M Source/WebGPU/WGSL/ConstantFunctions.h

  Log Message:
  -----------
  [WGSL] shader,execution,expression,call,builtin,bitcast:* is failing
https://bugs.webkit.org/show_bug.cgi?id=267333
rdar://120783284

Reviewed by Mike Wyrzykowski.

The constant implementation of bitcast reused the `convertValue` helper, which used
static_cast to convert between types. Allow passing different casts to convertValue
and use bitwise_cast instead.

* Source/WebGPU/WGSL/ConstantFunctions.h:
(WGSL::StaticCast::cast):
(WGSL::BitwiseCast::cast):
(WGSL::convertValue):
(WGSL::CONSTANT_FUNCTION):

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




More information about the webkit-changes mailing list