pub struct Painter {
    pub pipeline: Arc<GraphicsPipeline>,
    pub sampler: Arc<Sampler>,
    /* private fields */
}
Expand description

Contains everything needed to render the gui.

Fields

pipeline: Arc<GraphicsPipeline>

Graphics pipeline used to render the gui.

sampler: Arc<Sampler>

Texture sampler used to render the gui.

Implementations

Pass in the vulkano Device, Queue and Subpass that you want to use to render the gui.

Uploads all newly created and modified textures to the GPU. Has to be called before entering the first render pass.
If the return value is UpdateTexturesResult::Changed, a texture will be changed in this frame and you need to wait for the last frame to finish before submitting the command buffer for this frame.

Advances to the next rendering subpass and uses the [ClippedShape]s from egui::FullOutput to draw the gui.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.