-
Notifications
You must be signed in to change notification settings - Fork 344
Add defaults to GPUTextureViewDescriptor, remove createDefaultView #389
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
Conversation
kvark
left a comment
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.
that's an improvement!
| GPUTextureViewDimension dimension; | ||
| GPUTextureAspect aspect = "all"; | ||
| u32 baseMipLevel = 0; | ||
| u32 mipLevelCount = 1; |
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.
Should "default texture view" cover all the mipmap levels and the array layers instead of the first ones?
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.
it absolutely should (great point!), if we are going this way
we could make the mipLevelCount=0 to have this special semantics here
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 agree. Would you open another PR for this?
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.
Done in #407 . PTAL, thanks!
|
This has been open a while and I'm pretty confident that it's uncontroversial. Rerunning travis and merging. |
|
(with #407, which I'm merging too) |
gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874
gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874
gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874
gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/master@{#690746}
gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/master@{#690746}
gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/master@{#690746}
…estonly Automatic update from web-platform-tests Remove GPUTexture.createDefaultView gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/master@{#690746} -- wpt-commits: dc25cd389029b34cd368f326e59ac1810498524e wpt-pr: 18624
…estonly Automatic update from web-platform-tests Remove GPUTexture.createDefaultView gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/master@{#690746} -- wpt-commits: dc25cd389029b34cd368f326e59ac1810498524e wpt-pr: 18624
…estonly Automatic update from web-platform-tests Remove GPUTexture.createDefaultView gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallezchromium.org> Reviewed-by: Austin Eng <engachromium.org> Commit-Queue: Kai Ninomiya <kaininochromium.org> Cr-Commit-Position: refs/heads/master{#690746} -- wpt-commits: dc25cd389029b34cd368f326e59ac1810498524e wpt-pr: 18624 UltraBlame original commit: 46ce1c209c17ce99f3090d6dbe179e018424fea7
…estonly Automatic update from web-platform-tests Remove GPUTexture.createDefaultView gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallezchromium.org> Reviewed-by: Austin Eng <engachromium.org> Commit-Queue: Kai Ninomiya <kaininochromium.org> Cr-Commit-Position: refs/heads/master{#690746} -- wpt-commits: dc25cd389029b34cd368f326e59ac1810498524e wpt-pr: 18624 UltraBlame original commit: 46ce1c209c17ce99f3090d6dbe179e018424fea7
…estonly Automatic update from web-platform-tests Remove GPUTexture.createDefaultView gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallezchromium.org> Reviewed-by: Austin Eng <engachromium.org> Commit-Queue: Kai Ninomiya <kaininochromium.org> Cr-Commit-Position: refs/heads/master{#690746} -- wpt-commits: dc25cd389029b34cd368f326e59ac1810498524e wpt-pr: 18624 UltraBlame original commit: 46ce1c209c17ce99f3090d6dbe179e018424fea7
…estonly Automatic update from web-platform-tests Remove GPUTexture.createDefaultView gpuweb/gpuweb#389 Bug: dawn:214 Change-Id: I4450e9abcc1f202b3107b2ed42f54626f896f874 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1766765 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org> Cr-Commit-Position: refs/heads/master@{#690746} -- wpt-commits: dc25cd389029b34cd368f326e59ac1810498524e wpt-pr: 18624
These defaults seem reasonable and unsurprising to me.
I feel like we must have discussed these already before, but it's really hard to find anything about it in our GitHub issues.
Preview | Diff