[−][src]Struct egui_wgpu_backend::RenderPass
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: &PaintJobs,
screen_descriptor: &ScreenDescriptor,
clear_color: Option<Color>
)
[src]
&mut self,
encoder: &mut CommandEncoder,
color_attachment: &TextureView,
paint_jobs: &PaintJobs,
screen_descriptor: &ScreenDescriptor,
clear_color: Option<Color>
)
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]
&mut self,
device: &Device,
queue: &Queue,
egui_texture: &Texture
)
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: &mut Device,
queue: &mut Queue,
paint_jobs: &PaintJobs,
screen_descriptor: &ScreenDescriptor
)
[src]
&mut self,
device: &mut Device,
queue: &mut Queue,
paint_jobs: &PaintJobs,
screen_descriptor: &ScreenDescriptor
)
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
impl !RefUnwindSafe for RenderPass
impl Send for RenderPass
impl Sync for RenderPass
impl Unpin for RenderPass
impl !UnwindSafe for RenderPass
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,