From 4ba6effc2f56f40b0b990c1473ff691d6e322e36 Mon Sep 17 00:00:00 2001 From: chyyran Date: Tue, 1 Oct 2024 23:08:58 -0400 Subject: [PATCH] rt(mtl): fix test --- librashader-runtime-mtl/tests/hello_triangle/main.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/librashader-runtime-mtl/tests/hello_triangle/main.rs b/librashader-runtime-mtl/tests/hello_triangle/main.rs index 60265b3..48bf847 100644 --- a/librashader-runtime-mtl/tests/hello_triangle/main.rs +++ b/librashader-runtime-mtl/tests/hello_triangle/main.rs @@ -397,12 +397,7 @@ declare_class!( // blit.endEncoding(); filter_chain.frame(&texture, - &Viewport { - x: 0.0, - y: 0.0, - mvp: None, - output: &backbuffer - }, &command_buffer, 1, None) + &Viewport::new_render_target_sized_origin(backbuffer.as_ref(), None).expect("viewport"), &command_buffer, 1, None) .expect("frame"); let blit = command_buffer