mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Add support for texture filters in WGPU backend
This commit is contained in:
@@ -697,7 +697,7 @@ impl Context {
|
||||
/// ui.ctx().load_texture(
|
||||
/// "my-image",
|
||||
/// egui::ColorImage::example(),
|
||||
/// egui::epaint::textures::TextureFilter::Linear
|
||||
/// egui::TextureFilter::Linear
|
||||
/// )
|
||||
/// });
|
||||
///
|
||||
|
||||
@@ -327,7 +327,7 @@ pub use epaint::hex_color;
|
||||
pub use epaint::{
|
||||
color, mutex,
|
||||
text::{FontData, FontDefinitions, FontFamily, FontId, FontTweak},
|
||||
textures::TexturesDelta,
|
||||
textures::{TextureFilter, TexturesDelta},
|
||||
ClippedPrimitive, Color32, ColorImage, FontImage, ImageData, Mesh, PaintCallback,
|
||||
PaintCallbackInfo, Rgba, Rounding, Shape, Stroke, TextureHandle, TextureId,
|
||||
};
|
||||
|
||||
@@ -1529,7 +1529,7 @@ impl Ui {
|
||||
/// ui.ctx().load_texture(
|
||||
/// "my-image",
|
||||
/// egui::ColorImage::example(),
|
||||
/// egui::epaint::textures::TextureFilter::Linear
|
||||
/// egui::TextureFilter::Linear
|
||||
/// )
|
||||
/// });
|
||||
///
|
||||
|
||||
@@ -18,7 +18,7 @@ use emath::Rot2;
|
||||
/// ui.ctx().load_texture(
|
||||
/// "my-image",
|
||||
/// egui::ColorImage::example(),
|
||||
/// egui::epaint::textures::TextureFilter::Linear
|
||||
/// egui::TextureFilter::Linear
|
||||
/// )
|
||||
/// });
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user