mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 05:40:03 -04:00
Update wgpu to 0.19 (#3824)
* Closes https://github.com/emilk/egui/issues/3675 --------- Co-authored-by: Andreas Reich <r_andreas2@web.de> Co-authored-by: Mingun <Alexander_Sergey@mail.ru>
This commit is contained in:
@@ -7,8 +7,14 @@ use epaint::{ahash::HashMap, emath::NumExt, PaintCallbackInfo, Primitive, Vertex
|
||||
use wgpu;
|
||||
use wgpu::util::DeviceExt as _;
|
||||
|
||||
/// You can use this for storage when implementing [`CallbackTrait`].
|
||||
pub type CallbackResources = type_map::concurrent::TypeMap;
|
||||
|
||||
/// You can use this to do custom `wgpu` rendering in an egui app.
|
||||
///
|
||||
/// Implement [`CallbackTrait`] and call [`Callback::new_paint_callback`].
|
||||
///
|
||||
/// This can be turned into a [`epaint::PaintCallback`] and [`epaint::Shape`].
|
||||
pub struct Callback(Box<dyn CallbackTrait>);
|
||||
|
||||
impl Callback {
|
||||
|
||||
Reference in New Issue
Block a user