Merge pull request #40 from msiglreith/push_const
Fix push constant size (length of bytes instead of DWORDs)
This commit is contained in:
commit
b62faef166
|
@ -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 _,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue