Cargo lock update, limits fix (#2033)

This commit is contained in:
Dzmitry Malyshau
2021-10-07 16:57:33 -04:00
committed by GitHub
parent 312828f12f
commit 85fbbbbbf3
3 changed files with 7 additions and 2 deletions

3
Cargo.lock generated
View File

@@ -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",

View File

@@ -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(

View File

@@ -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,