use macro explicitly instead of using macro_use

This commit is contained in:
porky11 2019-01-12 20:16:27 +01:00
parent b61298a884
commit 4acd1edbc3
7 changed files with 12 additions and 3 deletions

View File

@ -1,5 +1,7 @@
use crate::{BindGroupLayoutId, BufferId, SamplerId, TextureViewId}; use crate::{BindGroupLayoutId, BufferId, SamplerId, TextureViewId};
use bitflags::bitflags;
bitflags! { bitflags! {
#[repr(transparent)] #[repr(transparent)]
pub struct ShaderStageFlags: u32 { pub struct ShaderStageFlags: u32 {

View File

@ -22,6 +22,8 @@ use std::collections::hash_map::Entry;
use std::ops::Range; use std::ops::Range;
use std::thread::ThreadId; use std::thread::ThreadId;
use log::trace;
#[repr(C)] #[repr(C)]
#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)] #[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)]
pub enum LoadOp { pub enum LoadOp {

View File

@ -1,8 +1,5 @@
#[macro_use]
extern crate bitflags; extern crate bitflags;
#[macro_use]
extern crate lazy_static; extern crate lazy_static;
#[macro_use]
extern crate log; extern crate log;
#[cfg(feature = "gfx-backend-dx12")] #[cfg(feature = "gfx-backend-dx12")]

View File

@ -2,6 +2,8 @@ use crate::resource;
use crate::{BlendStateId, ByteArray, DepthStencilStateId, PipelineLayoutId, ShaderModuleId}; use crate::{BlendStateId, ByteArray, DepthStencilStateId, PipelineLayoutId, ShaderModuleId};
use bitflags::bitflags;
#[repr(C)] #[repr(C)]
#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)] #[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)]
pub enum BlendFactor { pub enum BlendFactor {

View File

@ -2,6 +2,8 @@ use std::sync::Arc;
use parking_lot::RwLock; use parking_lot::RwLock;
use lazy_static::lazy_static;
use crate::{ use crate::{
AdapterHandle, BindGroupHandle, BindGroupLayoutHandle, BlendStateHandle, BufferHandle, AdapterHandle, BindGroupHandle, BindGroupLayoutHandle, BlendStateHandle, BufferHandle,
CommandBufferHandle, ComputePassHandle, ComputePipelineHandle, DepthStencilStateHandle, CommandBufferHandle, ComputePassHandle, ComputePipelineHandle, DepthStencilStateHandle,

View File

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

View File

@ -6,6 +6,8 @@ use std::hash::Hash;
use std::mem; use std::mem;
use std::ops::{BitOr, Range}; use std::ops::{BitOr, Range};
use bitflags::bitflags;
#[derive(Clone, Debug, PartialEq)] #[derive(Clone, Debug, PartialEq)]
#[allow(unused)] #[allow(unused)]
pub enum Tracktion<T> { pub enum Tracktion<T> {