Struct egui_wgpu::Renderer [−][src]
pub struct Renderer { /* fields omitted */ }
Expand description
egui renderer
Implementations
impl Renderer
[src]
impl Renderer
[src]pub fn new(device: &Device, output_format: TextureFormat) -> Self
[src]
pub fn new(device: &Device, output_format: TextureFormat) -> Self
[src]Creates a new egui renderer
output_format
needs to be either [wgpu::TextureFormat::Rgba8UnormSrgb
] or
[wgpu::TextureFormat::Bgra8UnormSrgb
]. Panics otherwise.
pub fn render<'a, M, T>(&mut self, desc: RenderDescriptor<'a, M, T>) where
M: Iterator<Item = &'a ClippedMesh> + Clone,
T: Iterator<Item = &'a Texture>,
[src]
pub fn render<'a, M, T>(&mut self, desc: RenderDescriptor<'a, M, T>) where
M: Iterator<Item = &'a ClippedMesh> + Clone,
T: Iterator<Item = &'a Texture>,
[src]Renders all egui meshes onto render_target.
pub fn register_texture(
&mut self,
device: &Device,
texture: &Texture
) -> TextureId
[src]
pub fn register_texture(
&mut self,
device: &Device,
texture: &Texture
) -> TextureId
[src]Registers a wgpu::Texture
in the renderer.
pub fn unregister_texture(&mut self, id: TextureId)
[src]
pub fn unregister_texture(&mut self, id: TextureId)
[src]Unregisters the texture.
Auto Trait Implementations
impl !RefUnwindSafe for Renderer
impl Send for Renderer
impl Sync for Renderer
impl Unpin for Renderer
impl !UnwindSafe for Renderer
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more