From 5f3acf50b45e565b74de800153a3041402ccda30 Mon Sep 17 00:00:00 2001 From: Jinlei Li Date: Sat, 3 Dec 2022 16:12:43 +0800 Subject: [PATCH] Decrease `max_buffer_size` limit value to be compatible with Apple2 GPU (#3255) * Decrease `max_buffer_size` limit value to be compatible with Apple2 GPU * Update CHANGELOG * Update CHANGELOG.md Co-authored-by: Connor Fitzgerald --- CHANGELOG.md | 1 + wgpu-types/src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fb07c09bcd..86c23ab808 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -77,6 +77,7 @@ Additionally `Surface::get_default_config` now returns an Option and returns Non - New downlevel feature `UNRESTRICTED_INDEX_BUFFER` to indicate support for using `INDEX` together with other non-copy/map usages (unsupported on WebGL). By @Wumpf in [#3157](https://github.com/gfx-rs/wgpu/pull/3157) - Combine `Surface::get_supported_formats`, `Surface::get_supported_present_modes`, and `Surface::get_supported_alpha_modes` into `Surface::get_capabilities` and `SurfaceCapabilities`. By @cwfitzgerald in [#3157](https://github.com/gfx-rs/wgpu/pull/3157) - Make `Surface::get_default_config` return an Option to prevent panics. By @cwfitzgerald in [#3157](https://github.com/gfx-rs/wgpu/pull/3157) +- Lower the `max_buffer_size` limit value for compatibility with Apple2 and WebGPU compliance. By @jinleili in [#3255](https://github.com/gfx-rs/wgpu/pull/3255) #### WebGPU diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 2d1aeae233..82ffaf31f3 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -849,7 +849,7 @@ impl Default for Limits { max_compute_workgroup_size_y: 256, max_compute_workgroup_size_z: 64, max_compute_workgroups_per_dimension: 65535, - max_buffer_size: 1 << 30, + max_buffer_size: 1 << 28, } } }