Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 3b1cf88ddf2b118045096099a656ced989c7546d
      
https://github.com/WebKit/WebKit/commit/3b1cf88ddf2b118045096099a656ced989c7546d
  Author: Tadeu Zagallo <[email protected]>
  Date:   2024-07-08 (Mon, 08 Jul 2024)

  Changed paths:
    M Source/WebGPU/WGSL/TypeCheck.cpp
    A Source/WebGPU/WGSL/tests/invalid/texture-offset.wgsl

  Log Message:
  -----------
  [WGSL] Offset parameter to texture functions should be a const-expression
https://bugs.webkit.org/show_bug.cgi?id=276226
rdar://130227871

Reviewed by Mike Wyrzykowski.

According to the spec, the `offset` argument to texture functions must be a
const-expression, and the values must be between -8 and 7.

* Source/WebGPU/WGSL/TypeCheck.cpp:
(WGSL::TypeChecker::visit):
* Source/WebGPU/WGSL/tests/invalid/texture-offset.wgsl: Added.

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



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to