305: Fix Instance init on Windows r=eternal a=kvark

Fixes  #303

Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com>
This commit is contained in:
authored and GitHub committed 2019-08-22 15:30:31 +00:00
commit 08b2092d33
5 files changed
+10 -5

No files matched your search

+2
View File
@@ -59,6 +59,8 @@ script:
- cargo test
- (cd wgpu-native && cargo check --features local,glutin)
# TODO: Temporarily only test building the gl backend, properly test when it is usable from C
- if [[ $TRAVIS_OS_NAME == "windows" ]]; then (cd wgpu-native && cargo check --features gfx-backend-dx11); fi
- if [[ $TRAVIS_OS_NAME == "windows" ]]; then (cd wgpu-native && cargo check --features gfx-backend-dx12); fi
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then cargo check --release; fi
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]]; then cargo +nightly install cbindgen; fi
- if [[ $TRAVIS_RUST_VERSION == "nightly" ]] && [[ $TRAVIS_OS_NAME == "windows" ]]; then
+3
View File
@@ -1,5 +1,8 @@
# Change Log
## v0.3.3 (22-08-2019)
- fixed instance creation on Windows
## v0.3.1 (21-08-2019)
- fixed pipeline barriers that aren't transitions
Generated
+2 -2
View File
@@ -1419,7 +1419,7 @@ dependencies = [
[[package]]
name = "wgpu-native"
version = "0.3.1"
version = "0.3.2"
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)",
@@ -1449,7 +1449,7 @@ dependencies = [
"log 0.4.6 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)",
"serde 1.0.91 (registry+https://github.com/rust-lang/crates.io-index)",
"wgpu-native 0.3.1",
"wgpu-native 0.3.2",
]
[[package]]
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "wgpu-native"
version = "0.3.1"
version = "0.3.3"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
"Joshua Groves <josh@joshgroves.com>",
+2 -2
View File
@@ -114,8 +114,8 @@ pub fn wgpu_instance_create_surface(
instance.create_surface_from_wayland(h.display, h.surface),
#[cfg(all(windows, feature = "gfx-backend-vulkan"))]
raw_window_handle::RawWindowHandle::Windows(h) =>
instance.create_surface_from_hwnd(ptr::null_mut(), h.hwnd),
#[cfg(all(windows, feature = "gfx-backend-dx12"))]
instance.create_surface_from_hwnd(std::ptr::null_mut(), h.hwnd),
#[cfg(all(windows, feature = "gfx-backend-dx11"))]
raw_window_handle::RawWindowHandle::Windows(h) =>
instance.create_surface_from_hwnd(h.hwnd),
#[cfg(all(windows, feature = "gfx-backend-dx12"))]