From dc31e4bdd0baa6ce3670a17617f05c31805a750d Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Wed, 20 Mar 2019 12:35:04 -0400 Subject: [PATCH] Fix descriptor size, bump versions --- Cargo.lock | 14 +++++++------- wgpu-native/Cargo.toml | 2 +- wgpu-rs/Cargo.toml | 2 +- wgpu-rs/src/lib.rs | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b2dfe4d74..66e111b4c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -320,8 +320,8 @@ name = "examples" version = "0.1.0" dependencies = [ "env_logger 0.5.13 (registry+https://github.com/rust-lang/crates.io-index)", - "wgpu 0.2.0", - "wgpu-native 0.2.3", + "wgpu 0.2.1", + "wgpu-native 0.2.4", ] [[package]] @@ -498,7 +498,7 @@ dependencies = [ "env_logger 0.5.13 (registry+https://github.com/rust-lang/crates.io-index)", "glsl-to-spirv 0.1.7 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", - "wgpu 0.2.0", + "wgpu 0.2.1", ] [[package]] @@ -1384,10 +1384,10 @@ dependencies = [ [[package]] name = "wgpu" -version = "0.2.0" +version = "0.2.1" dependencies = [ "arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", - "wgpu-native 0.2.3", + "wgpu-native 0.2.4", ] [[package]] @@ -1399,7 +1399,7 @@ dependencies = [ [[package]] name = "wgpu-native" -version = "0.2.3" +version = "0.2.4" dependencies = [ "arrayvec 0.4.10 (registry+https://github.com/rust-lang/crates.io-index)", "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1425,7 +1425,7 @@ dependencies = [ "log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.89 (registry+https://github.com/rust-lang/crates.io-index)", - "wgpu-native 0.2.3", + "wgpu-native 0.2.4", ] [[package]] diff --git a/wgpu-native/Cargo.toml b/wgpu-native/Cargo.toml index b1523f21f..7ca9944f7 100644 --- a/wgpu-native/Cargo.toml +++ b/wgpu-native/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wgpu-native" -version = "0.2.3" +version = "0.2.4" authors = [ "Dzmitry Malyshau ", "Joshua Groves ", diff --git a/wgpu-rs/Cargo.toml b/wgpu-rs/Cargo.toml index c79655bf3..e3eae484b 100644 --- a/wgpu-rs/Cargo.toml +++ b/wgpu-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "wgpu" -version = "0.2.0" +version = "0.2.1" authors = [ "Dzmitry Malyshau ", "Joshua Groves ", diff --git a/wgpu-rs/src/lib.rs b/wgpu-rs/src/lib.rs index cd456656a..d58cd37f3 100644 --- a/wgpu-rs/src/lib.rs +++ b/wgpu-rs/src/lib.rs @@ -323,7 +323,7 @@ impl Device { } => wgn::BindingResource::Buffer(wgn::BufferBinding { buffer: buffer.id, offset: range.start, - size: range.end, + size: range.end - range.start, }), BindingResource::Sampler(ref sampler) => { wgn::BindingResource::Sampler(sampler.id)