From c975a73cc097024a472a8ef4b5da95b5ba3b34c2 Mon Sep 17 00:00:00 2001 From: Maik Klein Date: Fri, 22 Dec 2017 14:29:05 +0100 Subject: [PATCH] Add first_viewport fo cmd_set_viewport --- ash/src/device.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ash/src/device.rs b/ash/src/device.rs index 35bd75a..dd1da8b 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -808,11 +808,12 @@ pub trait DeviceV1_0 { unsafe fn cmd_set_viewport( &self, command_buffer: vk::CommandBuffer, + first_viewport: vk::uint32_t, viewports: &[vk::Viewport], ) { self.fp_v1_0().cmd_set_viewport( command_buffer, - 0, + first_viewport, viewports.len() as vk::uint32_t, viewports.as_ptr(), );