mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
use macro explicitly instead of using macro_use
This commit is contained in:
parent
b61298a884
commit
4acd1edbc3
@ -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 {
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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")]
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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,
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
@ -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> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user