egui/crates
valadaptive bb9e874c83
Update sampler along with texture on wgpu backend (#5122)
<!--
Please read the "Making a PR" section of
[`CONTRIBUTING.md`](https://github.com/emilk/egui/blob/master/CONTRIBUTING.md)
before opening a Pull Request!

* Keep your PR:s small and focused.
* The PR title is what ends up in the changelog, so make it descriptive!
* If applicable, add a screenshot or gif.
* If it is a non-trivial addition, consider adding a demo for it to
`egui_demo_lib`, or a new example.
* Do NOT open PR:s from your `master` branch, as that makes it hard for
maintainers to test and add commits to your PR.
* Remember to run `cargo fmt` and `cargo clippy`.
* Open the PR as a draft until you have self-reviewed it and run
`./scripts/check.sh`.
* When you have addressed a PR comment, mark it as resolved.

Please be patient! I will review your PR, but my time is limited!
-->

* Closes #5121
* [x] I have followed the instructions in the PR template

This unifies the code paths in `update_texture` somewhat, so that the
texture sampler and bind group are always replaced.

Not sure whether removing and reinserting the texture from and into the
`textures` map, or creating a new bind group, has much of a performance
impact. An alternative, as described in #5121, would be to split the
functionality for updating a texture's data from updating its options,
so that we don't have to unconditionally update the bind group (or do
something like store the options to check if they're changed).
2024-09-19 09:16:42 +02:00
..
ecolor Use precomputed lookup table in Color32::from_rgba_unmultiplied (#5088) 2024-09-10 09:50:56 +02:00
eframe Fix: call `save` when hiding tab, and `update` when focusing it (#5114) 2024-09-16 16:28:54 +02:00
egui Add UI to modify `FontTweak` live (#5125) 2024-09-18 13:43:33 +02:00
egui-wgpu Update sampler along with texture on wgpu backend (#5122) 2024-09-19 09:16:42 +02:00
egui-winit Add `Context::request_discard` (#5059) 2024-09-13 14:20:51 +02:00
egui_demo_app Fix some minor clippy lints from the future 2024-09-18 09:44:23 +02:00
egui_demo_lib Add UI to modify `FontTweak` live (#5125) 2024-09-18 13:43:33 +02:00
egui_extras Fix some minor clippy lints from the future 2024-09-18 09:44:23 +02:00
egui_glow Update `glow` to 0.14 (#4952) 2024-09-09 14:02:06 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Use `log` crate instead of `eprintln` & remove some unwraps (#5010) 2024-09-13 14:23:13 +02:00
epaint Add UI to modify `FontTweak` live (#5125) 2024-09-18 13:43:33 +02:00
epaint_default_fonts Enable rustdoc `generate-link-to-definition` feature on docs.rs (#5030) 2024-08-30 11:22:29 +02:00