Add cmd_execute
This commit is contained in:
parent
2ab5495367
commit
39e79db05a
|
@ -351,6 +351,16 @@ pub trait DeviceV1_0 {
|
||||||
first_instance);
|
first_instance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unsafe fn cmd_execute_commands(&self,
|
||||||
|
primary_command_buffer: vk::CommandBuffer,
|
||||||
|
secondary_command_buffers: &[vk::CommandBuffer]) {
|
||||||
|
|
||||||
|
self.fp_v1_0()
|
||||||
|
.cmd_execute_commands(primary_command_buffer,
|
||||||
|
secondary_command_buffers.len() as vk::uint32_t,
|
||||||
|
secondary_command_buffers.as_ptr());
|
||||||
|
}
|
||||||
|
|
||||||
unsafe fn cmd_bind_descriptor_sets(&self,
|
unsafe fn cmd_bind_descriptor_sets(&self,
|
||||||
command_buffer: vk::CommandBuffer,
|
command_buffer: vk::CommandBuffer,
|
||||||
pipeline_bind_point: vk::PipelineBindPoint,
|
pipeline_bind_point: vk::PipelineBindPoint,
|
||||||
|
@ -658,8 +668,7 @@ pub trait DeviceV1_0 {
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe fn get_fence_status(&self, fence: vk::Fence) -> VkResult<()> {
|
unsafe fn get_fence_status(&self, fence: vk::Fence) -> VkResult<()> {
|
||||||
let err_code = self.fp_v1_0()
|
let err_code = self.fp_v1_0().get_fence_status(self.handle(), fence);
|
||||||
.get_fence_status(self.handle(), fence);
|
|
||||||
match err_code {
|
match err_code {
|
||||||
vk::Result::Success => Ok(()),
|
vk::Result::Success => Ok(()),
|
||||||
_ => Err(err_code),
|
_ => Err(err_code),
|
||||||
|
|
Loading…
Reference in a new issue