Adds free_command_buffers to device
This commit is contained in:
parent
4307e127f2
commit
463e862a45
|
@ -2,7 +2,7 @@
|
||||||
use prelude::*;
|
use prelude::*;
|
||||||
use std::mem;
|
use std::mem;
|
||||||
use vk;
|
use vk;
|
||||||
use ::RawPtr;
|
use RawPtr;
|
||||||
use version::{FunctionPointers, V1_0};
|
use version::{FunctionPointers, V1_0};
|
||||||
|
|
||||||
#[allow(non_camel_case_types)]
|
#[allow(non_camel_case_types)]
|
||||||
|
@ -25,6 +25,15 @@ pub trait DeviceV1_0 {
|
||||||
self.fp_v1_0().free_memory(self.handle(), memory, allocation_callbacks.as_raw_ptr());
|
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,
|
unsafe fn destroy_fence(&self,
|
||||||
fence: vk::Fence,
|
fence: vk::Fence,
|
||||||
allocation_callbacks: Option<&vk::AllocationCallbacks>) {
|
allocation_callbacks: Option<&vk::AllocationCallbacks>) {
|
||||||
|
|
Loading…
Reference in a new issue