mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 15:31:03 +01:00
Fix instance init on Windows and check it on CI
This commit is contained in:
1 parent
9cc7886782
commit
87b61d206c
5 files changed
+9
-4
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
@@ -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,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>",
|
||||
|
||||
@@ -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"))]
|
||||
|
||||
Reference in new issue
Block a user