pub struct Renderer {
    pub textures: Textures<Texture>,
    /* private fields */
}

Fields

textures: Textures<Texture>

Textures of the font atlas and all images.

Implementations

Create an entirely new imgui wgpu renderer.

Prepares buffers for the current imgui frame. This must be called before Renderer::split_render, and its output must be passed to the render call.

Render the current imgui frame. Renderer::prepare must be called first, and the output render data must be kept for the lifetime of the renderpass.

Render the current imgui frame.

Updates the texture on the GPU corresponding to the current imgui font atlas.

This has to be called after loading a font.

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.