mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-07 07:45:52 +00:00
Simplify constructor argument
This commit is contained in:
parent
8c63e080ba
commit
481222dbcb
@ -42,9 +42,7 @@ pub struct Renderer {
|
|||||||
|
|
||||||
impl Renderer {
|
impl Renderer {
|
||||||
/// Returns a new `Renderer`.
|
/// Returns a new `Renderer`.
|
||||||
pub async fn new(
|
pub async fn new(screen: &impl Screen) -> Result<Self, InitError> {
|
||||||
screen: &impl Screen<Window = egui_winit::winit::window::Window>,
|
|
||||||
) -> Result<Self, InitError> {
|
|
||||||
let instance = wgpu::Instance::new(wgpu::Backends::PRIMARY);
|
let instance = wgpu::Instance::new(wgpu::Backends::PRIMARY);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user