Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0babce13402ffcbc740f869afe752ab688b7718c
      
https://github.com/WebKit/WebKit/commit/0babce13402ffcbc740f869afe752ab688b7718c
  Author: Tadeu Zagallo <[email protected]>
  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


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

Reply via email to