-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WGSL] Add overloads for textureSample #11934
[WGSL] Add overloads for textureSample #11934
Conversation
EWS run on previous version of this PR (hash bc70c1d) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yolo ruby
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -11,3 +11,17 @@ | |||
[T < Float, C, R].(Matrix[T, C, R], Vector[T, C]) => Vector[T, R], | |||
[T < Float, C, R].(Vector[T, R], Matrix[T, C, R]) => Vector[T, C], | |||
} | |||
|
|||
operator :textureSample, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we document the missing textureSample
functions with a FIXME?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a link to a bugzilla bug that lists all the missing overloads
EWS run on previous version of this PR (hash 8f5e896) |
8f5e896
to
803292f
Compare
EWS run on current version of this PR (hash 803292f) |
https://bugs.webkit.org/show_bug.cgi?id=254431 rdar://107190590 Reviewed by Myles C. Maxfield. Add the definitions for the overloads of textureSample that operate on non-depth textures. This requires minor modifications to the DSL to support concrete instances of types that can also be abstract (i.e. Vector and Matrix). The definitions are a little hard to read, and I might revisit it soon, but for now it matches the existing definitions. * Source/WebGPU/WGSL/Overload.h: * Source/WebGPU/WGSL/TypeDeclarations.rb: * Source/WebGPU/WGSL/generator/main.rb: Canonical link: https://commits.webkit.org/262204@main
803292f
to
9b4dfec
Compare
Committed 262204@main (9b4dfec): https://commits.webkit.org/262204@main Reviewed commits have been landed. Closing PR #11934 and removing active labels. |
9b4dfec
803292f
π§ͺ ios-wk2π§ͺ api-iosπ§ͺ gtk-wk2π§ͺ mac-AS-debug-wk2