Skip to content

Commit 4aa3d36

Browse files
committed
[d3d12 wgl] Upgrade to windows 0.61 crates
https://github.com/microsoft/windows-rs/releases/tag/63
1 parent 31b361d commit 4aa3d36

File tree

5 files changed

+23
-63
lines changed

5 files changed

+23
-63
lines changed

Cargo.lock

Lines changed: 13 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,10 @@ gpu-alloc = "0.6"
206206
gpu-descriptor = "0.3.2"
207207

208208
# DX12 dependencies
209-
gpu-allocator = { version = "0.27", default-features = false }
209+
gpu-allocator = { version = "0.27", default-features = false, features = ["hashbrown"] }
210210
range-alloc = "0.1"
211211
mach-dxcompiler-rs = { version = "0.1.4", default-features = false } # remember to increase max_shader_model if applicable
212-
windows-core = { version = "0.59", default-features = false }
212+
windows-core = { version = "0.61", default-features = false }
213213

214214
# Gles dependencies
215215
khronos-egl = "6"
@@ -219,7 +219,7 @@ glutin-winit = { version = "0.4", default-features = false }
219219
glutin_wgl_sys = "0.6"
220220

221221
# DX12 and GLES dependencies
222-
windows = { version = "0.59", default-features = false }
222+
windows = { version = "0.61", default-features = false }
223223

224224
# wasm32 dependencies
225225
console_error_panic_hook = "0.1.5"
@@ -251,7 +251,8 @@ ndk-sys = "0.6"
251251
wgpu = { path = "./wgpu" }
252252

253253
# https://github.com/Traverse-Research/gpu-allocator/pull/258
254-
gpu-allocator = { git = "https://github.com/Traverse-Research/gpu-allocator", rev = "955b13a" }
254+
# https://github.com/Traverse-Research/gpu-allocator/pull/269
255+
gpu-allocator = { git = "https://github.com/Traverse-Research/gpu-allocator", rev = "673e4ecb503af4188e0ca576acd0dad681f22413" }
255256

256257
# https://github.com/tokio-rs/tokio/pull/7117
257258
tokio = { git = "https://github.com/tokio-rs/tokio", rev = "aff24df" }

wgpu-hal/src/dx12/device.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,8 +1826,8 @@ impl crate::Device for super::Device {
18261826
DepthBias: bias.constant,
18271827
DepthBiasClamp: bias.clamp,
18281828
SlopeScaledDepthBias: bias.slope_scale,
1829-
DepthClipEnable: Foundation::BOOL::from(!desc.primitive.unclipped_depth),
1830-
MultisampleEnable: Foundation::BOOL::from(desc.multisample.count > 1),
1829+
DepthClipEnable: windows_core::BOOL::from(!desc.primitive.unclipped_depth),
1830+
MultisampleEnable: windows_core::BOOL::from(desc.multisample.count > 1),
18311831
ForcedSampleCount: 0,
18321832
AntialiasedLineEnable: false.into(),
18331833
ConservativeRaster: if desc.primitive.conservative {
@@ -1857,7 +1857,7 @@ impl crate::Device for super::Device {
18571857
RasterizedStream: 0,
18581858
},
18591859
BlendState: Direct3D12::D3D12_BLEND_DESC {
1860-
AlphaToCoverageEnable: Foundation::BOOL::from(
1860+
AlphaToCoverageEnable: windows_core::BOOL::from(
18611861
desc.multisample.alpha_to_coverage_enabled,
18621862
),
18631863
IndependentBlendEnable: true.into(),

wgpu-hal/src/dx12/suballocation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl Allocator {
144144
allocations,
145145
blocks,
146146
total_allocated_bytes: upstream.total_allocated_bytes,
147-
total_reserved_bytes: upstream.total_reserved_bytes,
147+
total_reserved_bytes: upstream.total_capacity_bytes,
148148
}
149149
}
150150
}

wgpu-types/src/counters.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ pub struct AllocatorReport {
181181
/// Sum of the memory used by all allocations, in bytes.
182182
pub total_allocated_bytes: u64,
183183
/// Sum of the memory reserved by all memory blocks including unallocated regions, in bytes.
184+
// XXX: Rename to total_capacity_bytes following the rename at https://github.com/Traverse-Research/gpu-allocator/pull/266?
184185
pub total_reserved_bytes: u64,
185186
}
186187

0 commit comments

Comments
 (0)