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.
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.
Auto Trait Implementations
impl !RefUnwindSafe for Renderer
impl !UnwindSafe for Renderer