Struct conrod_wgpu::Renderer[][src]

pub struct Renderer { /* fields omitted */ }
Expand description

A helper type aimed at simplifying the rendering of conrod primitives via wgpu.

Implementations

Construct a new Renderer.

The dst_sample_count and dst_format refer to the associated properties of the output attachment to which the Renderer will draw. Note that if the dst_sample_count or dst_format change at runtime, the Renderer should be reconstructed.

Create a renderer with a specific size for the glyph cache.

The dst_sample_count and dst_format refer to the associated properties of the output attachment to which the Renderer will draw. Note that if the dst_sample_count or dst_format change at runtime, the Renderer should be reconstructed.

Produce an Iterator yielding Commands.

Fill the inner vertex and command buffers by translating the given primitives.

This method may return an Option<GlyphCacheCommand>, in which case the user should use the contained glyph_cpu_buffer_pool to write the pixel data to the GPU, and then use a copy_buffer_to_image command to write the data to the given glyph_cache_texture image.

Converts the inner list of Commands generated via fill to a list of RenderPassCommands that are easily digestible by a wgpu::RenderPass produced by a wgpu::CommandEncoder.

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

Performs the conversion.

Performs the conversion.

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.