remove some unnecessary and

This commit is contained in:
porky11 2019-01-12 20:11:27 +01:00
parent 6f3499ecae
commit b61298a884
10 changed files with 3 additions and 13 deletions

View File

@ -1,5 +1,3 @@
use hal;
use crate::{BindGroupLayoutId, BufferId, SamplerId, TextureViewId};
bitflags! {

View File

@ -4,7 +4,7 @@ use crate::{DeviceId, LifeGuard, Stored};
use hal::command::RawCommandBuffer;
use hal::pool::RawCommandPool;
use hal::{self, Device};
use hal::Device;
use std::collections::HashMap;
//TODO: use `parking_lot::Mutex`?

View File

@ -1,7 +1,6 @@
use crate::registry::{Items, HUB};
use crate::{BindGroupId, CommandBufferId, ComputePassId, ComputePipelineId, Stored};
use hal;
use hal::command::RawCommandBuffer;
use std::iter;

View File

@ -7,7 +7,7 @@ pub use self::compute::*;
pub use self::render::*;
use hal::command::RawCommandBuffer;
use hal::{self, Device};
use hal::Device;
use crate::device::{FramebufferKey, RenderPassKey};
use crate::registry::{Items, HUB};

View File

@ -2,7 +2,6 @@ use crate::registry::{Items, HUB};
use crate::track::{BufferTracker, TextureTracker};
use crate::{CommandBuffer, CommandBufferId, RenderPassId, Stored};
use hal;
use hal::command::RawCommandBuffer;
pub struct RenderPass<B: hal::Backend> {

View File

@ -1,5 +1,3 @@
use hal;
use crate::{binding_model, command, pipeline, resource, Color, Extent3d};
pub fn map_buffer_usage(

View File

@ -1,4 +1,4 @@
use hal::{self, Instance as _Instance, PhysicalDevice as _PhysicalDevice};
use hal::{Instance as _Instance, PhysicalDevice as _PhysicalDevice};
use crate::registry::{Items, HUB};
use crate::{AdapterId, Device, DeviceId, InstanceId};

View File

@ -4,7 +4,6 @@ extern crate bitflags;
extern crate lazy_static;
#[macro_use]
extern crate log;
extern crate parking_lot;
#[cfg(feature = "gfx-backend-dx12")]
extern crate gfx_backend_dx12 as back;

View File

@ -1,4 +1,3 @@
use hal;
use crate::resource;
use crate::{BlendStateId, ByteArray, DepthStencilStateId, PipelineLayoutId, ShaderModuleId};

View File

@ -1,7 +1,5 @@
use crate::{DeviceId, Extent3d, LifeGuard, Stored, TextureId};
use hal;
bitflags! {
#[repr(transparent)]
pub struct BufferUsageFlags: u32 {