From 1df7d5149abed69be7d2297aecbbb7269d79efd6 Mon Sep 17 00:00:00 2001 From: msiglreith Date: Sat, 2 Dec 2017 16:41:19 +0100 Subject: [PATCH] Switch to u8 slices for push constant (fixes passed length) --- ash/src/device.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ash/src/device.rs b/ash/src/device.rs index 8dd1e7a..35bd75a 100644 --- a/ash/src/device.rs +++ b/ash/src/device.rs @@ -667,14 +667,14 @@ pub trait DeviceV1_0 { layout: vk::PipelineLayout, stage_flags: vk::ShaderStageFlags, offset: vk::uint32_t, - constants: &[u32] + constants: &[u8] ) { self.fp_v1_0().cmd_push_constants( command_buffer, layout, stage_flags, offset, - constants.len() as vk::uint32_t, + constants.len() as _, constants.as_ptr() as _, ); }