Add cmd_push_constants to Device.
This commit is contained in:
parent
37a1cab53c
commit
b9b57a24df
1 changed files with 18 additions and 0 deletions
|
@ -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(
|
unsafe fn cmd_begin_render_pass(
|
||||||
&self,
|
&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
|
|
Loading…
Add table
Reference in a new issue