Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 93cfb0d7485895eebe72c136501b709572ada15c
      
https://github.com/WebKit/WebKit/commit/93cfb0d7485895eebe72c136501b709572ada15c
  Author: Mike Wyrzykowski <[email protected]>
  Date:   2023-10-02 (Mon, 02 Oct 2023)

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTInterpolateAttribute.h
    M Source/WebGPU/WGSL/AST/ASTVisitor.cpp
    M Source/WebGPU/WGSL/AST/ASTVisitor.h
    M Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp
    M Source/WebGPU/WGSL/Parser.cpp

  Log Message:
  -----------
  [WebGPU][WGSL] Support @interpolate
https://bugs.webkit.org/show_bug.cgi?id=262509
<radar://113987505>

Reviewed by Dan Glastonbury.

Support @interpolate which allows for flat shading, linear / non-perspective
interpolation, along with sample, center, and centroid sampling.

* Source/WebGPU/WGSL/AST/ASTInterpolateAttribute.h:
* Source/WebGPU/WGSL/AST/ASTVisitor.cpp:
(WGSL::AST::Visitor::visit):
* Source/WebGPU/WGSL/AST/ASTVisitor.h:
(WGSL::AST::Visitor::visit):
* Source/WebGPU/WGSL/Metal/MetalFunctionWriter.cpp:
(WGSL::Metal::convertToSampleMode):
(WGSL::Metal::FunctionDefinitionWriter::visit):
* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseAttribute):

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


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

Reply via email to