Switch to u8 slices for push constant (fixes passed length)

This commit is contained in:
msiglreith 2017-12-02 16:41:19 +01:00
parent f07af40a6c
commit 1df7d5149a

View file

@ -667,14 +667,14 @@ pub trait DeviceV1_0 {
layout: vk::PipelineLayout, layout: vk::PipelineLayout,
stage_flags: vk::ShaderStageFlags, stage_flags: vk::ShaderStageFlags,
offset: vk::uint32_t, offset: vk::uint32_t,
constants: &[u32] constants: &[u8]
) { ) {
self.fp_v1_0().cmd_push_constants( self.fp_v1_0().cmd_push_constants(
command_buffer, command_buffer,
layout, layout,
stage_flags, stage_flags,
offset, offset,
constants.len() as vk::uint32_t, constants.len() as _,
constants.as_ptr() as _, constants.as_ptr() as _,
); );
} }