Skip to content

Commit

Permalink
Adds free_command_buffers to device
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikKlein committed Feb 26, 2017
1 parent 4307e12 commit 463e862
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use prelude::*;
use std::mem;
use vk;
use ::RawPtr;
use RawPtr;
use version::{FunctionPointers, V1_0};

#[allow(non_camel_case_types)]
Expand All @@ -25,6 +25,15 @@ pub trait DeviceV1_0 {
self.fp_v1_0().free_memory(self.handle(), memory, allocation_callbacks.as_raw_ptr());
}

unsafe fn free_command_buffers(&self,
command_pool: vk::CommandPool,
command_buffers: &[vk::CommandBuffer]) {
self.fp_v1_0().free_command_buffers(self.handle(),
command_pool,
command_buffers.len() as vk::uint32_t,
command_buffers.as_ptr());
}

unsafe fn destroy_fence(&self,
fence: vk::Fence,
allocation_callbacks: Option<&vk::AllocationCallbacks>) {
Expand Down

0 comments on commit 463e862

Please sign in to comment.