Merge pull request #168 from Ralith/misc

Expose destroy_event, fix an argument name
This commit is contained in:
Maik Klein 2018-12-06 09:23:29 +01:00 committed by GitHub
commit 60e3efd552
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -265,6 +265,15 @@ pub trait DeviceV1_0 {
.destroy_fence(self.handle(), fence, allocation_callbacks.as_raw_ptr());
}
unsafe fn destroy_event(
&self,
event: vk::Event,
allocation_callbacks: Option<&vk::AllocationCallbacks>,
) {
self.fp_v1_0()
.destroy_event(self.handle(), event, allocation_callbacks.as_raw_ptr());
}
unsafe fn destroy_image(
&self,
image: vk::Image,
@ -1422,11 +1431,11 @@ pub trait DeviceV1_0 {
unsafe fn begin_command_buffer(
&self,
command_buffer: vk::CommandBuffer,
create_info: &vk::CommandBufferBeginInfo,
begin_info: &vk::CommandBufferBeginInfo,
) -> VkResult<()> {
let err_code = self
.fp_v1_0()
.begin_command_buffer(command_buffer, create_info);
.begin_command_buffer(command_buffer, begin_info);
match err_code {
vk::Result::SUCCESS => Ok(()),
_ => Err(err_code),