Expose wgpu::TextureView-descriptor/texture/render_extent#7895
Expose wgpu::TextureView-descriptor/texture/render_extent#7895Wumpf wants to merge 8 commits intogfx-rs:trunkfrom
wgpu::TextureView-descriptor/texture/render_extent#7895Conversation
|
Could we get this in for wgpu 26? This is a huge improvement! |
|
So turns out I actually missunderstood the spec here: those are internal properties as signified by the brackets in the spec. I agree this would still be useful to have, but I think all the complexity for the altered descriptor isn't really warranted then. I think now we should instead do it more like on @JMS55 which were the parts you were particularly interested in? |
|
Just |
|
I'm going to close this, unless you have strong interest in following up on it. |
Description
Implements a bunch of methods on
TextureViewthat the spec warrants(and that would have been real useful just now for me 😄)
See:
https://www.w3.org/TR/webgpu/#texture-view-creation
A bit of an annoying consequence is that views now keep their textures alives all the way. But the underlying resources were already kept alive necessarily, so in practice this doesn't make much of a difference.
Testing
Adds checks to existing view tests. Not covering everything in excruciating detail, but covers some interesting aspects actually (automatic format changes).
Squash or Rebase?
Squash
Checklist
cargo fmt.taplo format.cargo clippy --tests. If applicable, add:--target wasm32-unknown-unknowncargo xtask testto run tests.CHANGELOG.mdentry.