Fix instance init on Windows and check it on CI

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2019-08-22 11:29:45 -04:00
1 parent 9cc7886782
commit 87b61d206c
5 files changed
+9 -4

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.2"
version = "0.3.3"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
"Joshua Groves <josh@joshgroves.com>",
+1 -1
View File
@@ -115,7 +115,7 @@ pub fn wgpu_instance_create_surface(
#[cfg(all(windows, feature = "gfx-backend-vulkan"))]
raw_window_handle::RawWindowHandle::Windows(h) =>
instance.create_surface_from_hwnd(std::ptr::null_mut(), h.hwnd),
#[cfg(all(windows, feature = "gfx-backend-dx12"))]
#[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"))]