mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 14:20:04 -04:00
Add support for texture filters in WGPU backend
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use egui::{color::*, epaint::textures::TextureFilter, widgets::color_picker::show_color, *};
|
||||
use egui::{color::*, widgets::color_picker::show_color, TextureFilter, *};
|
||||
use std::collections::HashMap;
|
||||
|
||||
const GRADIENT_SIZE: Vec2 = vec2(256.0, 24.0);
|
||||
|
||||
@@ -552,7 +552,7 @@ impl ItemsDemo {
|
||||
ui.ctx().load_texture(
|
||||
"plot_demo",
|
||||
egui::ColorImage::example(),
|
||||
egui::epaint::textures::TextureFilter::Linear,
|
||||
egui::TextureFilter::Linear,
|
||||
)
|
||||
});
|
||||
let image = PlotImage::new(
|
||||
|
||||
@@ -118,7 +118,7 @@ impl WidgetGallery {
|
||||
ui.ctx().load_texture(
|
||||
"example",
|
||||
egui::ColorImage::example(),
|
||||
egui::epaint::textures::TextureFilter::Linear,
|
||||
egui::TextureFilter::Linear,
|
||||
)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user