Add cmd_push_constants to Device.
This commit is contained in:
parent
37a1cab53c
commit
b9b57a24df
|
@ -649,6 +649,24 @@ pub trait DeviceV1_0 {
|
|||
)
|
||||
}
|
||||
|
||||
unsafe fn cmd_push_constants(
|
||||
&self,
|
||||
command_buffer: vk::CommandBuffer,
|
||||
layout: vk::PipelineLayout,
|
||||
stage_flags: vk::ShaderStageFlags,
|
||||
offset: vk::uint32_t,
|
||||
constants: &[u32]
|
||||
) {
|
||||
self.fp_v1_0().cmd_push_constants(
|
||||
command_buffer,
|
||||
layout,
|
||||
stage_flags,
|
||||
offset,
|
||||
constants.len() as vk::uint32_t,
|
||||
constants.as_ptr() as _,
|
||||
);
|
||||
}
|
||||
|
||||
unsafe fn cmd_begin_render_pass(
|
||||
&self,
|
||||
command_buffer: vk::CommandBuffer,
|
||||
|
|
Loading…
Reference in a new issue