Improve consistency in new iced_wgpu types

This commit is contained in:
Héctor Ramón Jiménez 2020-02-09 05:31:42 +01:00
parent fbfd76023b
commit 5f89fab9d7
3 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,7 @@ impl Renderer {
/// Creates a new [`Renderer`].
///
/// [`Renderer`]: struct.Renderer.html
pub fn new(settings: Settings, device: &mut wgpu::Device) -> Self {
pub fn new(device: &mut wgpu::Device, settings: Settings) -> Self {
let text_pipeline = text::Pipeline::new(device, settings.default_font);
let quad_pipeline = quad::Pipeline::new(device);
let image_pipeline = crate::image::Pipeline::new(device);