diff --git a/examples/src/bin/texture.rs b/examples/src/bin/texture.rs index 4921e64..7e2873d 100644 --- a/examples/src/bin/texture.rs +++ b/examples/src/bin/texture.rs @@ -902,7 +902,7 @@ fn main() { device.cmd_bind_pipeline(draw_command_buffer, vk::PipelineBindPoint::Graphics, graphic_pipeline); - device.cmd_set_viewport(draw_command_buffer, &viewports); + device.cmd_set_viewport(draw_command_buffer, 0, &viewports); device.cmd_set_scissor(draw_command_buffer, &scissors); device .cmd_bind_vertex_buffers(draw_command_buffer, 0, &[vertex_input_buffer], &[0]); diff --git a/examples/src/bin/triangle.rs b/examples/src/bin/triangle.rs index 5409711..a056499 100644 --- a/examples/src/bin/triangle.rs +++ b/examples/src/bin/triangle.rs @@ -497,7 +497,7 @@ fn main() { device.cmd_bind_pipeline(draw_command_buffer, vk::PipelineBindPoint::Graphics, graphic_pipeline); - device.cmd_set_viewport(draw_command_buffer, &viewports); + device.cmd_set_viewport(draw_command_buffer, 0, &viewports); device.cmd_set_scissor(draw_command_buffer, &scissors); device .cmd_bind_vertex_buffers(draw_command_buffer, 0, &[vertex_input_buffer], &[0]);