[][src]Struct egui_wgpu_backend::RenderPass

pub struct RenderPass { /* fields omitted */ }

RenderPass to render a egui based GUI.

Implementations

impl RenderPass[src]

pub fn new(device: &Device, output_format: TextureFormat) -> Self[src]

Creates a new render pass to render a egui UI. output_format needs to be either wgpu::TextureFormat::Rgba8UnormSrgb or wgpu::TextureFormat::Bgra8UnormSrgb. Panics if it's not a Srgb format.

pub fn execute(
    &mut self,
    encoder: &mut CommandEncoder,
    color_attachment: &TextureView,
    paint_jobs: &[PaintJob],
    screen_descriptor: &ScreenDescriptor,
    clear_color: Option<Color>
)
[src]

Executes the egui render pass. When clear_on_draw is set, the output target will get cleared before writing to it.

pub fn update_texture(
    &mut self,
    device: &Device,
    queue: &Queue,
    egui_texture: &Texture
)
[src]

Updates the texture used by egui for the fonts etc. Should be called before execute().

pub fn update_user_textures(&mut self, device: &Device, queue: &Queue)[src]

Updates the user textures that the app allocated. Should be called before execute().

pub fn update_buffers(
    &mut self,
    device: &Device,
    queue: &Queue,
    paint_jobs: &[PaintJob],
    screen_descriptor: &ScreenDescriptor
)
[src]

Uploads the uniform, vertex and index data used by the render pass. Should be called before execute().

Trait Implementations

impl TextureAllocator for RenderPass[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.