diff --git a/Cargo.lock b/Cargo.lock index b16bf4907a..63c6f5038a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1853,6 +1853,7 @@ dependencies = [ "gpu-alloc", "gpu-descriptor", "inplace_it", + "js-sys", "khronos-egl", "libloading 0.7.0", "log", @@ -1865,6 +1866,8 @@ dependencies = [ "raw-window-handle", "renderdoc-sys", "thiserror", + "wasm-bindgen", + "web-sys", "wgpu-types", "winapi", "winit", diff --git a/wgpu-hal/src/gles/queue.rs b/wgpu-hal/src/gles/queue.rs index 57a4c6b59f..4c83ca09e0 100644 --- a/wgpu-hal/src/gles/queue.rs +++ b/wgpu-hal/src/gles/queue.rs @@ -253,6 +253,8 @@ impl super::Queue { gl.bind_buffer(copy_src_target, Some(src)); gl.bind_buffer(copy_dst_target, Some(dst)); + //TODO: remove this slow path completely + // https://github.com/gfx-rs/wgpu/issues/2031 if is_index_buffer_only_element_dst { let mut buffer_data = vec![0; copy.size.get() as usize]; gl.get_buffer_sub_data( diff --git a/wgpu-types/src/lib.rs b/wgpu-types/src/lib.rs index 6f061b666c..35eda06558 100644 --- a/wgpu-types/src/lib.rs +++ b/wgpu-types/src/lib.rs @@ -674,8 +674,8 @@ impl Limits { /// These default limits are guarenteed to be compatible with GLES3, and D3D11 pub fn downlevel_defaults() -> Self { Self { - max_texture_dimension_1d: 2096, - max_texture_dimension_2d: 2096, + max_texture_dimension_1d: 2048, + max_texture_dimension_2d: 2048, max_texture_dimension_3d: 256, max_texture_array_layers: 256, max_bind_groups: 4,