Skip to content

Commit

Permalink
fix new api compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lishen authored and not-fl3 committed Nov 14, 2023
1 parent 5327890 commit 6e7a6b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/offscreen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl Stage {
..Default::default()
});

let offscreen_pass = ctx.new_render_pass(color_img, Some(depth_img));
let offscreen_pass = ctx.new_render_pass(Some(color_img), Some(depth_img));

#[rustfmt::skip]
let vertices: &[f32] = &[
Expand Down
4 changes: 2 additions & 2 deletions examples/post_processing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl Stage {
..Default::default()
});

let offscreen_pass = ctx.new_render_pass(color_img, Some(depth_img));
let offscreen_pass = ctx.new_render_pass(Some(color_img), Some(depth_img));

#[rustfmt::skip]
let vertices: &[f32] = &[
Expand Down Expand Up @@ -203,7 +203,7 @@ impl EventHandler for Stage {
..Default::default()
});

let offscreen_pass = self.ctx.new_render_pass(color_img, Some(depth_img));
let offscreen_pass = self.ctx.new_render_pass(Some(color_img), Some(depth_img));

self.ctx.delete_render_pass(self.offscreen_pass);
self.offscreen_pass = offscreen_pass;
Expand Down

0 comments on commit 6e7a6b0

Please sign in to comment.