Struct conrod_vulkano::Renderer
source · [−]pub struct Renderer { /* private fields */ }
Expand description
A type used for translating render::Primitives
into Command
s that indicate how to draw the
conrod GUI using vulkano
.
Implementations
Construct a new empty Renderer
.
The dimensions of the glyph cache will be the dimensions of the window multiplied by the DPI factor.
pub fn with_glyph_cache_dimensions(
device: Arc<Device>,
subpass: Subpass,
graphics_queue_family: QueueFamily<'_>,
glyph_cache_dims: [u32; 2]
) -> Result<Self, RendererCreationError>
pub fn with_glyph_cache_dimensions(
device: Arc<Device>,
subpass: Subpass,
graphics_queue_family: QueueFamily<'_>,
glyph_cache_dims: [u32; 2]
) -> Result<Self, RendererCreationError>
Construct a new empty Renderer
.
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.
Draws using the inner list of Command
s to a list of DrawCommand
s compatible with the
vulkano command buffer builders.
Uses the given queue
for submitting vertex buffers.
Note: If you require more granular control over rendering, you may want to use the fill
and commands
methods separately. This method is simply a convenience wrapper around those
methods for the case that the user does not require accessing or modifying conrod’s draw
parameters, uniforms or generated draw commands.
Auto Trait Implementations
impl RefUnwindSafe for Renderer
impl UnwindSafe for Renderer
Blanket Implementations
Mutably borrows from an owned value. Read more
Builds a pointer to this type from a raw pointer.
Returns true if the size is suitable to store a type like this.
Returns the size of an individual element.