Skip to content

Commit 14c3583

Browse files
bors[bot]kvark
andauthored
Merge #371
371: Don't depend on gfx-auxil r=straightforward a=kvark Problem with gfx-auxil is that version 0.1 drags spirv_cross dependency (not needed on Vulkan), and the published crates haven't been switched to gfx-auxil-0.2 Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2 parents 505096d + cb69262 commit 14c3583

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

wgpu-native/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ metal-auto-capture = ["gfx-backend-metal/auto-capture"]
2626
arrayvec = "0.5"
2727
bitflags = "1.0"
2828
copyless = "0.1"
29+
fxhash = "0.2"
2930
lazy_static = { version = "1.1.0", optional = true }
3031
log = "0.4"
3132
hal = { package = "gfx-hal", git = "https://github.com/gfx-rs/gfx", rev = "46386475f7e823e807ec984c372ffe04dcc0a22b" }
32-
gfx-auxil = { git = "https://github.com/gfx-rs/gfx", rev = "46386475f7e823e807ec984c372ffe04dcc0a22b" }
3333
gfx-backend-empty = { git = "https://github.com/gfx-rs/gfx", rev = "46386475f7e823e807ec984c372ffe04dcc0a22b" }
3434
parking_lot = "0.9"
3535
raw-window-handle = { version = "0.3", optional = true }

wgpu-native/src/device.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ use crate::{
2525
CommandEncoderId,
2626
ComputePipelineId,
2727
DeviceId,
28+
FastHashMap,
2829
Features,
2930
LifeGuard,
3031
PipelineLayoutId,
@@ -48,7 +49,6 @@ use crate::{gfx_select, hub::GLOBAL};
4849

4950
use arrayvec::ArrayVec;
5051
use copyless::VecHelper as _;
51-
use gfx_auxil::FastHashMap;
5252
use hal::{
5353
self,
5454
command::CommandBuffer as _,

wgpu-native/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -229,3 +229,6 @@ pub(crate) struct Features {
229229
pub max_bind_groups: u32,
230230
pub supports_texture_d24_s8: bool,
231231
}
232+
233+
/// Fast hash map used internally.
234+
type FastHashMap<K, V> = std::collections::HashMap<K, V, std::hash::BuildHasherDefault<fxhash::FxHasher>>;

wgpu-native/src/track/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ use crate::{
1111
Backend,
1212
BindGroupId,
1313
Epoch,
14+
FastHashMap,
1415
Index,
1516
RefCount,
1617
SamplerId,
1718
TextureViewId,
1819
TypedId,
1920
};
2021

21-
use gfx_auxil::FastHashMap;
22-
2322
use std::{
2423
borrow::Borrow,
2524
collections::hash_map::Entry,

0 commit comments

Comments
 (0)