mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Use i32::MAX as the max buffer size for Dx12 (#4020)
This commit is contained in:
@@ -191,6 +191,7 @@ By @fornwall in [#3904](https://github.com/gfx-rs/wgpu/pull/3904) and [#3905](ht
|
||||
#### DX12
|
||||
|
||||
- Disable suballocation on Intel Iris(R) Xe. By @xiaopengli89 in [#3668](https://github.com/gfx-rs/wgpu/pull/3668)
|
||||
- Change the `max_buffer_size` limit from `u64::MAX` to `i32::MAX`. By @nical in [#4020](https://github.com/gfx-rs/wgpu/pull/4020)
|
||||
|
||||
#### WebGPU
|
||||
|
||||
|
||||
@@ -354,7 +354,10 @@ impl super::Adapter {
|
||||
max_compute_workgroup_size_z: d3d12_ty::D3D12_CS_THREAD_GROUP_MAX_Z,
|
||||
max_compute_workgroups_per_dimension:
|
||||
d3d12_ty::D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION,
|
||||
max_buffer_size: u64::MAX,
|
||||
// Dx12 does not expose a maximum buffer size in the API.
|
||||
// This limit is chosen to avoid potential issues with drivers should they internally
|
||||
// store buffer sizes using 32 bit ints (a situation we have already encountered with vulkan).
|
||||
max_buffer_size: i32::MAX as u64,
|
||||
},
|
||||
alignments: crate::Alignments {
|
||||
buffer_copy_offset: wgt::BufferSize::new(
|
||||
|
||||
Reference in New Issue
Block a user