This commit should should cause no visible change in behavior.
Many `back::spv::Writer` methods take long lists of arguments simply describing
the module and function we're generating code for, but these never change while
we generate a given function. This commit moves some of those values into a
`BlockContext` type, and turns those `Writer` methods into `BlockContext`
methods, so that code can access these values through `self`, rather than
threading them through everywhere as arguments.
Many uses of `self.foo` become `self.writer.foo`. Some of these can be
simplified, but to make this commit easier to review, most of those changes are
left to later commits.
This allows us to remove some `#[allow(clippy::too_many_arguments)]` attributes.
This commit should introduce no meaningful code changes. It's simply isolating
the `Writer` methods that should be `BlockContext` methods into their own impl
block, to make it easier to see the meaningful changes needed to introduce
`BlockContext`.
1576: Switch all bitflag names to plural r=cwfitzgerald a=kvark
**Connections**
#1471 added a lot of singular bitflag names. Previously, we weren't really consistent.
**Description**
This PR changes all of the names to be plural, except for a few that don't imply singularity, and are matching WebGPU upstream. Maybe we need to convert them too?
**Testing**
self-tested
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
1510: OpenGL ES3 backend r=cwfitzgerald,Gordon-F,kvark a=kvark
**Connections**
Follow-up to #1471
**Description**
The new wgpu-hal backend for GLES3 ~~and WebGL2~~
Edit: WebGL2 is not included here
**Testing**
Examples!
Current status:
- all examples work, minus the next issue
- "mipmap" is buggy because we don't have a good way to do mipmap/layer selection
- automated testing?
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
Co-authored-by: Dzmitry Malyshau <kvark@fastmail.com>
1571: Removed feature="spirv" requirements from SPIRV_PASSTHROUGH support. r=cwfitzgerald a=ElectronicRU
.__________________________________________________________________.
Co-authored-by: Alex S <alex0player@gmail.com>