pub struct EguiRenderRoutine {
pub render_pass: Renderer,
pub screen_descriptor: ScreenDescriptor,
/* private fields */
}Fields§
§render_pass: Renderer§screen_descriptor: ScreenDescriptorImplementations§
Source§impl EguiRenderRoutine
impl EguiRenderRoutine
Sourcepub fn new(
device: &Device,
surface_format: TextureFormat,
samples: u32,
width: u32,
height: u32,
scale_factor: f32,
) -> Self
pub fn new( device: &Device, surface_format: TextureFormat, samples: u32, width: u32, height: u32, scale_factor: f32, ) -> Self
Creates a new render routine to render a egui UI.
Egui will always output gamma-encoded color. It will determine if to do this in the shader manually based on the output format.
pub fn resize(&mut self, new_width: u32, new_height: u32, new_scale_factor: f32)
pub fn end_frame_and_render( &mut self, ctx: &Context, device: &Device, queue: &Queue, encoder: &mut CommandEncoder, pixels_per_point: f32, ) -> Vec<ClippedPrimitive>
Auto Trait Implementations§
impl !Freeze for EguiRenderRoutine
impl !RefUnwindSafe for EguiRenderRoutine
impl Send for EguiRenderRoutine
impl Sync for EguiRenderRoutine
impl Unpin for EguiRenderRoutine
impl !UnwindSafe for EguiRenderRoutine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more