Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2948: Remove typed command wrappers r=msiglreith,grovesNL a=kvark Here comes another midnight PR. If you ever looked for a way to make users stick to the last published version (hal-0.3 in our case), look no more. This PR removes a layer from HAL and reorders the exported types so that everyone is guaranteed to have fun fixing their programs. Seriously though, the old way of type re-exports was very inconsistent and messy, both on the HAL and using sides. To clarify, I think having `Capability`-based wrappers is very useful, it's a great thing to have. Problems are: 1) it's not needed by the backends, and 2) it's not *universally* useful, i.e. things like Rendy, WebRender, and WebGPU can't really take full advantage of it. Therefore, our recommendation is to consider [rendy-command](https://crates.io/crates/rendy-command) as a replacement. cc @omni-viral With the removal of typed layers, our names became more solid, and the semantics of clear values is much simpler now. Fixes #2862 PR checklist: - [x] `make` succeeds (on *nix) - [x] `make reftests` succeeds - [x] tested examples with the following backends: all - [x] `rustfmt` run on changed code @grovesNL @msiglreith this PR should probably not hang around for too long, since it's hard to rebase. Only HAL parts needs reviewing, everything else is not as important. Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com> Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
- Loading branch information