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 bitflags::bitflags;
bitflags! {
#[repr(transparent)]
pub struct ShaderStageFlags: u32 {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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