From bfd05ea8e9f0d2dab8e342cf1a8fdbcdb18e2d47 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Fri, 22 Dec 2017 14:59:23 +0100 Subject: [PATCH] Update examples --- examples/src/bin/texture.rs | 2 +- examples/src/bin/triangle.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]);