mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 14:56:42 +00:00
commit
451fb9c70f
@ -122,9 +122,7 @@ impl<T> CpuAccessibleBuffer<T> {
|
|||||||
-> Result<Arc<CpuAccessibleBuffer<T>>, OomError>
|
-> Result<Arc<CpuAccessibleBuffer<T>>, OomError>
|
||||||
where I: IntoIterator<Item = QueueFamily<'a>>
|
where I: IntoIterator<Item = QueueFamily<'a>>
|
||||||
{
|
{
|
||||||
unsafe {
|
CpuAccessibleBuffer::raw(device, mem::size_of::<T>(), usage, queue_families)
|
||||||
CpuAccessibleBuffer::raw(device, mem::size_of::<T>(), usage, queue_families)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,9 +176,7 @@ impl<T> CpuAccessibleBuffer<[T]> {
|
|||||||
-> Result<Arc<CpuAccessibleBuffer<[T]>>, OomError>
|
-> Result<Arc<CpuAccessibleBuffer<[T]>>, OomError>
|
||||||
where I: IntoIterator<Item = QueueFamily<'a>>
|
where I: IntoIterator<Item = QueueFamily<'a>>
|
||||||
{
|
{
|
||||||
unsafe {
|
CpuAccessibleBuffer::raw(device, len * mem::size_of::<T>(), usage, queue_families)
|
||||||
CpuAccessibleBuffer::raw(device, len * mem::size_of::<T>(), usage, queue_families)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,13 +10,10 @@
|
|||||||
use std::mem;
|
use std::mem;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::sync::Mutex;
|
|
||||||
use std::sync::MutexGuard;
|
|
||||||
|
|
||||||
use device::Device;
|
use device::Device;
|
||||||
use OomError;
|
use OomError;
|
||||||
use Success;
|
use Success;
|
||||||
use SynchronizedVulkanObject;
|
|
||||||
use VulkanObject;
|
use VulkanObject;
|
||||||
use VulkanPointers;
|
use VulkanPointers;
|
||||||
use check_errors;
|
use check_errors;
|
||||||
|
Loading…
Reference in New Issue
Block a user