/// Construct a new empty `Renderer`.
///
/// The dimensions of the glyph cache will be the dimensions of the window multiplied by the
/// DPI factor.
Construct a new empty `Renderer`.
The dimensions of the glyph cache will be the dimensions of the window multiplied by the
DPI factor.
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 new(
        device: Arc<Device>,
        subpass: Subpass,
        graphics_queue_family: QueueFamily,
        window_dims: [u32; 2],
        dpi_factor: f64,
    ) -> Result<Self, RendererCreationError> {
        // TODO: Check that necessary subpass properties exist?
        let [w, h] = window_dims;
        let glyph_cache_dims = [
            (w as f64 * dpi_factor) as u32,
            (h as f64 * dpi_factor) as u32,
        ];
        Self::with_glyph_cache_dimensions(device, subpass, graphics_queue_family, glyph_cache_dims)
    }
pub fn new ( device : Arc < Device > , subpass : Subpass , graphics_queue_family : QueueFamily , window_dims : [ u32 ; 2 ] , dpi_factor : f64 , ) -> Result < Self , RendererCreationError > { // TODO: Check that necessary subpass properties exist? let [ w , h ] = window_dims ; let glyph_cache_dims = [ ( w as f64 * dpi_factor ) as u32 , ( h as f64 * dpi_factor ) as u32 , ] ; Self :: with_glyph_cache_dimensions ( device , subpass , graphics_queue_family , glyph_cache_dims ) }
Construct a new empty `Renderer`.
Construct a new empty ` Renderer ` .
device
Arc<Device>
subpass
Subpass
graphics_queue_family
QueueFamily
window_dims
[u32; 2]
dpi_factor
f64