[webkit-changes] [WebKit/WebKit] 0babce: [WGSL] Validate element types of vectors, matrices...

Tadeu Zagallo noreply at github.com
Thu Feb 15 04:25:32 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0babce13402ffcbc740f869afe752ab688b7718c
      https://github.com/WebKit/WebKit/commit/0babce13402ffcbc740f869afe752ab688b7718c
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2024-02-15 (Thu, 15 Feb 2024)

  Changed paths:
    M Source/WebGPU/WGSL/TypeCheck.cpp

  Log Message:
  -----------
  [WGSL] Validate element types of vectors, matrices and textures
https://bugs.webkit.org/show_bug.cgi?id=269379
rdar://122293433

Reviewed by Mike Wyrzykowski.

Validate that the element type of each of these type generators is valid according
to the spec:
- vectors can only contain scalar types
- matrices can only contain floating point types
- a texture's sampled type must be a concrete 32 bit scalar (i32, u32 or f32)

* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::TypeChecker):
(WGSL::TypeChecker::allocateSimpleConstructor):

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




More information about the webkit-changes mailing list