Merge pull request #40 from msiglreith/push_const

Fix push constant size (length of bytes instead of DWORDs)
This commit is contained in:
Maik Klein 2017-12-18 18:15:09 +01:00 committed by GitHub
commit b62faef166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 _,
);
}