egui/crates
Dan Lock a5973e5cac
Add `TextureOptions::wrap_mode` (#3954)
Exposes support in both glow and wgpu for texture wrap modes

This would be breaking for manual creations of TextureOptions but would
work with the current TextureOptions::NEAREST and LINEAR without change,
keeping those clamp to edge

I wasn't sure how best to expose the options to the user and added
consts for LINEAR_REPEAT LINEAR_MIRRORED_REPEAT NEAREST_REPEAT
NEAREST_MIRRORED_REPEAT

This does not include wrap mode clamp to border as it worked fine with
glow but with wgpu it panics due to Features
Features(ADDRESS_MODE_CLAMP_TO_BORDER) are required but not enabled on
the device, and I thought it was probably best not to try to enable that
feature, but happy to include that functionality also if that is okay to
be toggled


![image](https://github.com/emilk/egui/assets/5075747/bba71f61-a105-4e5b-b8ce-1083621eb3de)

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-02-05 09:37:05 +01:00
..
ecolor Use `Self` everywhere (#3787) 2024-01-08 17:41:21 +01:00
eframe Emilk/revert workspace deps (#3942) 2024-02-01 21:29:48 +01:00
egui Add `TextureOptions::wrap_mode` (#3954) 2024-02-05 09:37:05 +01:00
egui-wgpu Add `TextureOptions::wrap_mode` (#3954) 2024-02-05 09:37:05 +01:00
egui-winit Emilk/revert workspace deps (#3942) 2024-02-01 21:29:48 +01:00
egui_demo_app Emilk/revert workspace deps (#3942) 2024-02-01 21:29:48 +01:00
egui_demo_lib Emilk/revert workspace deps (#3942) 2024-02-01 21:29:48 +01:00
egui_extras Override text color with stroke selection color for selected cells (#3968) 2024-02-05 09:17:22 +01:00
egui_glow Add `TextureOptions::wrap_mode` (#3954) 2024-02-05 09:37:05 +01:00
egui_plot Fix clip rect for plot items (#3955) 2024-02-05 08:24:49 +01:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Expand plot axes thickness to fit their labels (#3921) 2024-01-30 12:45:27 +01:00
epaint Add `TextureOptions::wrap_mode` (#3954) 2024-02-05 09:37:05 +01:00