Skip to content

Commit 97640fd

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

File tree

6 files changed

+17
-65
lines changed

6 files changed

+17
-65
lines changed

.deny.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ skip = [
1818
# Winit uses an old version
1919
{ name = "windows-sys", version = "0.52.0" },
2020

21-
# Temporarily allow older Windows version until updates make it through
22-
{ name = "windows", version = "0.59" },
23-
{ name = "windows-core", version = "0.59" },
24-
{ name = "windows-implement", version = "0.59" },
25-
{ name = "windows-strings", version = "0.3" },
26-
2721
# bindgen (used by deno) uses old version
2822
{ name = "itertools", version = "0.13.0" },
2923
# Deno uses an old version

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ gpu-allocator = { version = "0.28", default-features = false, features = [
215215
] }
216216
range-alloc = "0.1"
217217
mach-dxcompiler-rs = { version = "0.1.4", default-features = false } # remember to increase max_shader_model if applicable
218-
windows-core = { version = "0.59", default-features = false }
218+
windows-core = { version = "0.61", default-features = false }
219219

220220
# Gles dependencies
221221
khronos-egl = "6"
@@ -225,7 +225,7 @@ glutin-winit = { version = "0.4", default-features = false }
225225
glutin_wgl_sys = "0.6"
226226

227227
# DX12 and GLES dependencies
228-
windows = { version = "0.59", default-features = false }
228+
windows = { version = "0.61", default-features = false }
229229

230230
# wasm32 dependencies
231231
console_error_panic_hook = "0.1.5"

wgpu-hal/src/dx12/device.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,8 +1895,8 @@ impl crate::Device for super::Device {
18951895
DepthBias: bias.constant,
18961896
DepthBiasClamp: bias.clamp,
18971897
SlopeScaledDepthBias: bias.slope_scale,
1898-
DepthClipEnable: Foundation::BOOL::from(!desc.primitive.unclipped_depth),
1899-
MultisampleEnable: Foundation::BOOL::from(desc.multisample.count > 1),
1898+
DepthClipEnable: windows_core::BOOL::from(!desc.primitive.unclipped_depth),
1899+
MultisampleEnable: windows_core::BOOL::from(desc.multisample.count > 1),
19001900
ForcedSampleCount: 0,
19011901
AntialiasedLineEnable: false.into(),
19021902
ConservativeRaster: if desc.primitive.conservative {
@@ -1925,7 +1925,7 @@ impl crate::Device for super::Device {
19251925
RasterizedStream: 0,
19261926
};
19271927
let blend_state = Direct3D12::D3D12_BLEND_DESC {
1928-
AlphaToCoverageEnable: Foundation::BOOL::from(
1928+
AlphaToCoverageEnable: windows_core::BOOL::from(
19291929
desc.multisample.alpha_to_coverage_enabled,
19301930
),
19311931
IndependentBlendEnable: true.into(),

wgpu-hal/src/dx12/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ use hashbrown::HashMap;
9393
use parking_lot::{Mutex, RwLock};
9494
use suballocation::Allocator;
9595
use windows::{
96-
core::{Free, Interface},
96+
core::{Free as _, Interface},
9797
Win32::{
9898
Foundation,
9999
Graphics::{Direct3D, Direct3D12, DirectComposition, Dxgi},

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)