pub fn new<'a, L>(
        device: Arc<Device>,
        subpass: Subpass<L>,
        graphics_queue_family: QueueFamily<'a>,
        window_dims: [u32; 2],
        dpi_factor: f64,
    ) -> Result<Self, RendererCreationError>
    where
        L: RenderPassDesc + RenderPassAbstract + Send + Sync + 'static,
    {
        // 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`.
///
/// 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<'a, L>(
        device: Arc<Device>,
        subpass: Subpass<L>,
        graphics_queue_family: QueueFamily<'a>,
        window_dims: [u32; 2],
        dpi_factor: f64,
    ) -> Result<Self, RendererCreationError>
    where
        L: RenderPassDesc + RenderPassAbstract + Send + Sync + 'static,
    {
        // 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 < ' a , L > ( device : Arc < Device > , subpass : Subpass < L > , graphics_queue_family : QueueFamily < ' a > , window_dims : [ u32 ; 2 ] , dpi_factor : f64 , ) -> Result < Self , RendererCreationError > where L : RenderPassDesc + RenderPassAbstract + Send + Sync + ' static , { // 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<L>
graphics_queue_family
QueueFamily<'a>
window_dims
[u32; 2]
dpi_factor
f64
device
Arc<Device>
subpass
Subpass<L>
graphics_queue_family
QueueFamily<'a>
window_dims
[u32; 2]
dpi_factor
f64