[webkit-changes] [WebKit/WebKit] f3b78a: [WGSL] Type::size should work for primitive structs

Tadeu Zagallo noreply at github.com
Fri Jun 14 06:15:27 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: f3b78a0f53405ce4616815e5b8c56001bf2c7f68
      https://github.com/WebKit/WebKit/commit/f3b78a0f53405ce4616815e5b8c56001bf2c7f68
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-06-14 (Fri, 14 Jun 2024)

  Changed paths:
    M Source/WebGPU/WGSL/Types.cpp
    M Source/WebGPU/WGSL/tests/valid/struct.wgsl

  Log Message:
  -----------
  [WGSL] Type::size should work for primitive structs
https://bugs.webkit.org/show_bug.cgi?id=275444
rdar://129771751

Reviewed by Mike Wyrzykowski.

Originally Type::size was only used for calculating the size of resources, so
only types that could used for resources were supported. As of 279876 at main it's
also used to get the size of local variables, which can also be primitive structs.

* Source/WebGPU/WGSL/Types.cpp:
(WGSL::Type::size const):
* Source/WebGPU/WGSL/tests/valid/struct.wgsl:

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



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list