Simplify constructor argument

This commit is contained in:
Hanno Braun 2022-10-12 12:58:03 +02:00
parent 8c63e080ba
commit 481222dbcb

View File

@ -42,9 +42,7 @@ pub struct Renderer {
impl Renderer {
/// Returns a new `Renderer`.
pub async fn new(
screen: &impl Screen<Window = egui_winit::winit::window::Window>,
) -> Result<Self, InitError> {
pub async fn new(screen: &impl Screen) -> Result<Self, InitError> {
let instance = wgpu::Instance::new(wgpu::Backends::PRIMARY);
//