Skip to content

Commit 2ccd8ad

Browse files
committed
[d3d12 wgl] Upgrade to windows 0.61 crates
https://github.com/microsoft/windows-rs/releases/tag/63
1 parent 1ac435d commit 2ccd8ad

File tree

5 files changed

+17
-59
lines changed

5 files changed

+17
-59
lines changed

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
@@ -213,7 +213,7 @@ gpu-descriptor = "0.3.2"
213213
gpu-allocator = { version = "0.28", default-features = false, features = ["hashbrown"] }
214214
range-alloc = "0.1"
215215
mach-dxcompiler-rs = { version = "0.1.4", default-features = false } # remember to increase max_shader_model if applicable
216-
windows-core = { version = "0.59", default-features = false }
216+
windows-core = { version = "0.61", default-features = false }
217217

218218
# Gles dependencies
219219
khronos-egl = "6"
@@ -223,7 +223,7 @@ glutin-winit = { version = "0.4", default-features = false }
223223
glutin_wgl_sys = "0.6"
224224

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

228228
# wasm32 dependencies
229229
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
@@ -1880,8 +1880,8 @@ impl crate::Device for super::Device {
18801880
DepthBias: bias.constant,
18811881
DepthBiasClamp: bias.clamp,
18821882
SlopeScaledDepthBias: bias.slope_scale,
1883-
DepthClipEnable: Foundation::BOOL::from(!desc.primitive.unclipped_depth),
1884-
MultisampleEnable: Foundation::BOOL::from(desc.multisample.count > 1),
1883+
DepthClipEnable: windows_core::BOOL::from(!desc.primitive.unclipped_depth),
1884+
MultisampleEnable: windows_core::BOOL::from(desc.multisample.count > 1),
18851885
ForcedSampleCount: 0,
18861886
AntialiasedLineEnable: false.into(),
18871887
ConservativeRaster: if desc.primitive.conservative {
@@ -1910,7 +1910,7 @@ impl crate::Device for super::Device {
19101910
RasterizedStream: 0,
19111911
};
19121912
let blend_state = Direct3D12::D3D12_BLEND_DESC {
1913-
AlphaToCoverageEnable: Foundation::BOOL::from(
1913+
AlphaToCoverageEnable: windows_core::BOOL::from(
19141914
desc.multisample.alpha_to_coverage_enabled,
19151915
),
19161916
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)