Update to wgpu-native b8d26c9186

This commit is contained in:
Dzmitry Malyshau
2019-10-30 22:26:42 -04:00
parent ed2c67f762
commit e0abf982e1
2 changed files with 9 additions and 3 deletions

View File

@@ -22,8 +22,13 @@ default = []
# Make Vulkan backend available on platforms where it is by default not, e.g. macOS
vulkan = ["wgn/gfx-backend-vulkan"]
[dependencies.wgn]
package = "wgpu-native"
git = "https://github.com/gfx-rs/wgpu"
rev = "b8d26c9186a59cf71cd8fab4e550c0746d1a2f80"
features = ["local"]
[dependencies]
wgn = { package = "wgpu-native", git = "https://github.com/gfx-rs/wgpu", rev = "78fbbba5e928e4a6f15a03a1c04d06916a947673" }
arrayvec = "0.5"
raw-window-handle = "0.3"
zerocopy = "0.2"

View File

@@ -541,8 +541,9 @@ impl Adapter {
///
/// If no adapters are found that suffice all the "hard" options, `None` is returned.
pub fn request(options: &wgn::RequestAdapterOptions) -> Option<Self> {
wgn::request_adapter(options, &[])
.map(|id| Adapter { id })
Some(Adapter {
id: wgn::wgpu_request_adapter(Some(options)),
})
}
/// Requests a connection to a physical device, creating a logical device.