mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 14:56:42 +00:00
commit
a8dfc332cb
@ -30,7 +30,6 @@ use std::sync::Arc;
|
||||
use std::sync::RwLock;
|
||||
use std::sync::RwLockReadGuard;
|
||||
use std::sync::RwLockWriteGuard;
|
||||
use std::sync::TryLockError;
|
||||
|
||||
use buffer::BufferUsage;
|
||||
use buffer::sys::BufferCreationError;
|
||||
@ -48,11 +47,8 @@ use memory::CpuAccess as MemCpuAccess;
|
||||
use memory::pool::AllocLayout;
|
||||
use memory::pool::MemoryPool;
|
||||
use memory::pool::MemoryPoolAlloc;
|
||||
use memory::pool::StdMemoryPool;
|
||||
use memory::pool::StdMemoryPoolAlloc;
|
||||
use sync::AccessError;
|
||||
use sync::AccessFlagBits;
|
||||
use sync::PipelineStages;
|
||||
use sync::Sharing;
|
||||
|
||||
use OomError;
|
||||
|
@ -14,7 +14,6 @@ use std::mem;
|
||||
use std::sync::Arc;
|
||||
use std::sync::Mutex;
|
||||
use std::sync::MutexGuard;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
|
@ -124,8 +124,8 @@ mod tests {
|
||||
let (device, queue) = gfx_dev_and_queue!();
|
||||
let buffer = CpuAccessibleBuffer::from_iter(device.clone(), BufferUsage::transfer_destination(),
|
||||
iter::once(queue.family()),
|
||||
0 .. 100000).unwrap();
|
||||
let data = (0 .. 65536).collect::<Vec<u8>>();
|
||||
(0 .. 100000).map(|_| 0)).unwrap();
|
||||
let data = (0 .. 65536).map(|_| 0).collect::<Vec<u8>>();
|
||||
|
||||
match check_update_buffer(&device, &buffer, &data[..]) {
|
||||
Ok(_) => (),
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
use std::iter::Empty;
|
||||
use std::sync::Arc;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
use std::sync::atomic::AtomicUsize;
|
||||
use std::sync::atomic::Ordering;
|
||||
|
||||
|
@ -12,10 +12,8 @@ use std::sync::Arc;
|
||||
|
||||
use device::Device;
|
||||
use device::Queue;
|
||||
use format::Format;
|
||||
use format::FormatDesc;
|
||||
use image::Dimensions;
|
||||
use image::ImageDimensions;
|
||||
use image::ImageInner;
|
||||
use image::ImageLayout;
|
||||
use image::ImageUsage;
|
||||
|
@ -16,11 +16,9 @@ use std::sync::atomic::Ordering;
|
||||
use device::Device;
|
||||
use device::Queue;
|
||||
use format::ClearValue;
|
||||
use format::Format;
|
||||
use format::FormatDesc;
|
||||
use format::FormatTy;
|
||||
use image::Dimensions;
|
||||
use image::ImageDimensions;
|
||||
use image::ImageInner;
|
||||
use image::ImageLayout;
|
||||
use image::ImageUsage;
|
||||
|
@ -14,11 +14,9 @@ use format::ClearValue;
|
||||
use format::Format;
|
||||
use format::FormatDesc;
|
||||
use image::Dimensions;
|
||||
use image::ImageDimensions;
|
||||
use image::ImageInner;
|
||||
use image::ImageLayout;
|
||||
use image::ViewType;
|
||||
use image::sys::UnsafeImage;
|
||||
use image::sys::UnsafeImageView;
|
||||
use image::traits::ImageAccess;
|
||||
use image::traits::ImageClearValue;
|
||||
|
Loading…
Reference in New Issue
Block a user