Struct rend3_egui::EguiRenderRoutine
source · [−]pub struct EguiRenderRoutine {
pub internal: RenderPass,
/* private fields */
}
Fields
internal: RenderPass
Implementations
sourceimpl 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 !RefUnwindSafe for EguiRenderRoutine
impl Send for EguiRenderRoutine
impl Sync for EguiRenderRoutine
impl Unpin for EguiRenderRoutine
impl !UnwindSafe for EguiRenderRoutine
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more