use macro explicitly instead of using macro_use

This commit is contained in:
porky11 committed 2019-01-12 20:17:04 +01:00
1 parent b61298a884
commit 4acd1edbc3
7 files changed
+12 -3

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
use crate::{BindGroupLayoutId, BufferId, SamplerId, TextureViewId};
use bitflags::bitflags;
bitflags! {
#[repr(transparent)]
pub struct ShaderStageFlags: u32 {
+2
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 {
-3
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")]
+2
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 {
+2
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,
+2
View File
@@ -1,5 +1,7 @@
use crate::{DeviceId, Extent3d, LifeGuard, Stored, TextureId};
use bitflags::bitflags;
bitflags! {
#[repr(transparent)]
pub struct BufferUsageFlags: u32 {
+2
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> {