Add texture sample function which clamps coordinates - #3403
Merged
Merged
Conversation
Adds this function for both texture_2d and texture_external for symmetry as agreed in discussion. Fixes issue 2766
Contributor
|
Previews, as seen when this build job started (6748ea6): |
Contributor
Author
LOD naming:
clamping naming:
|
toji
approved these changes
Aug 31, 2022
toji
left a comment
Member
There was a problem hiding this comment.
I think it was Winston Churchill who said "textureSampleBaseClampToEdge is the worst name for a function – except for all the others that have been considered."
LGTM.
dneto0
approved these changes
Sep 13, 2022
dneto0
left a comment
Contributor
There was a problem hiding this comment.
LGTM with nit for removing a sentence.
Contributor
Author
|
@litherum PTAL |
Contributor
|
Approved in WGSL meeting 2022-09-13. |
Contributor
WGSL 2022-09-13 Minutes
|
ben-clayton
added a commit
to ben-clayton/cts
that referenced
this pull request
Nov 17, 2022
…ge()` The `textureSampleLevel(texture_external)` overload has been replaced with `textureSampleBaseClampToEdge(texture_external)` See gpuweb/gpuweb#3403
3 of 7 tasks
ben-clayton
added a commit
to gpuweb/cts
that referenced
this pull request
Nov 17, 2022
…ge()` The `textureSampleLevel(texture_external)` overload has been replaced with `textureSampleBaseClampToEdge(texture_external)` See gpuweb/gpuweb#3403
jiangzhaoming
added a commit
to jiangzhaoming/gpuweb
that referenced
this pull request
Nov 25, 2022
…nstead of `textureSampleLevel` As is discussed in gpuweb#2766 and added into WGSL spec in gpuweb#3403, `textureSampleBaseClampToEdge` should be used when sampling from `texture_external`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds this function for both texture_2d and texture_external for
symmetry as agreed in discussion.
Name up for bikeshedding, but this is my proposal.
Fixes #2766