pub struct EguiRenderRoutine {
pub internal: RenderPass,
/* private fields */
}Fields§
§internal: RenderPassImplementations§
Source§impl EguiRenderRoutine
impl EguiRenderRoutine
Sourcepub fn new(
renderer: &Renderer,
surface_format: TextureFormat,
samples: SampleCount,
width: u32,
height: u32,
scale_factor: f32,
) -> Self
pub fn new( renderer: &Renderer, surface_format: TextureFormat, samples: SampleCount, 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 add_to_graph<'node>( &'node mut self, graph: &mut RenderGraph<'node>, input: Input<'node>, output: RenderTargetHandle, )
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