Add support for texture filters in WGPU backend

This commit is contained in:
Emil Ernerfeldt
2022-05-22 17:40:56 +02:00
parent 5d15e3d367
commit a29154233b
10 changed files with 17 additions and 12 deletions
+1 -1
View File
@@ -697,7 +697,7 @@ impl Context {
/// ui.ctx().load_texture(
/// "my-image",
/// egui::ColorImage::example(),
/// egui::epaint::textures::TextureFilter::Linear
/// egui::TextureFilter::Linear
/// )
/// });
///
+1 -1
View File
@@ -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,
};
+1 -1
View File
@@ -1529,7 +1529,7 @@ impl Ui {
/// ui.ctx().load_texture(
/// "my-image",
/// egui::ColorImage::example(),
/// egui::epaint::textures::TextureFilter::Linear
/// egui::TextureFilter::Linear
/// )
/// });
///
+1 -1
View File
@@ -18,7 +18,7 @@ use emath::Rot2;
/// ui.ctx().load_texture(
/// "my-image",
/// egui::ColorImage::example(),
/// egui::epaint::textures::TextureFilter::Linear
/// egui::TextureFilter::Linear
/// )
/// });
///