Skip to content

Commit

Permalink
Fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
attackgoat committed Feb 17, 2025
1 parent 1ff814c commit 453423f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/multipass.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod profile_with_puffin;

use {
bytemuck::cast_slice,
bytemuck::{bytes_of, cast_slice},
clap::Parser,
glam::{vec3, Mat4, Vec3, Vec4},
inline_spirv::inline_spirv,
Expand Down Expand Up @@ -52,7 +52,7 @@ fn main() -> anyhow::Result<()> {
let depth_stencil_format = best_depth_stencil_format(&window.device);
let mut pool = LazyPool::new(&window.device);
let fill_background = create_fill_background_pipeline(&window.device);
let prepass = create_prepass_pipeline(&event_loop.device);
let prepass = create_prepass_pipeline(&window.device);
let pbr = create_pbr_pipeline(&window.device);
let funky_shape = create_funky_shape(&window.device, &mut pool)?;

Expand Down Expand Up @@ -100,6 +100,7 @@ fn main() -> anyhow::Result<()> {
subpass
.bind_index_buffer(index_buf, vk::IndexType::UINT16)
.bind_vertex_buffer(vertex_buf)
.push_constants(bytes_of(&obj_pos))
.draw_indexed(funky_shape.index_count, 1, 0, 0, 0);
});

Expand Down

0 comments on commit 453423f

Please sign in to comment.