Skip to content

Commit

Permalink
* Upgrade to winit 0.18 (vulkano-rs#1105)
Browse files Browse the repository at this point in the history
*   Setup macOS travis CI.
  • Loading branch information
rukai authored Nov 8, 2018
1 parent c7ce269 commit d507cf4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
15 changes: 12 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
os:
- linux
- osx

language: rust
rust:
- nightly
Expand All @@ -7,16 +11,16 @@ cache:
cargo

install:
- export CXX="g++-4.8"
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX="g++-4.8" ; fi

addons:
apt:
sources:
- ubuntu-toolchain-r-test
- george-edison55-precise-backports # recent version of cmake
- george-edison55-precise-backports # recent version of cmake
packages:
- gcc-4.8
- g++-4.8 # required to compile glslang
- g++-4.8 # required to compile glslang
- clang
- cmake
- cmake-data
Expand All @@ -32,20 +36,25 @@ after_success:
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vk-sys/Cargo.toml
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano/Cargo.toml
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-win/Cargo.toml
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shaders/Cargo.toml
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_OS_NAME = linux ] &&
cargo publish --token ${CRATESIO_TOKEN} --manifest-path vulkano-shader-derive/Cargo.toml
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Unreleased (Breaking)

- Update to winit 0.18
- Export features and device extensions from the device module instead of the instance module
+ `instance::Features` -> `device::Features`
+ `instance::DeviceExtensions` -> `device::DeviceExtensions`
Expand Down
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ vulkano-shaders = { path = "../vulkano-shaders" }
vulkano-win = { path = "../vulkano-win" }
cgmath = "0.16.1"
image = "0.20.0"
winit = "0.17"
winit = "0.18"
time = "0.1.38"
6 changes: 3 additions & 3 deletions vulkano-win/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ categories = ["rendering::graphics-api"]

[dependencies]
vulkano = { version = "0.10.0", path = "../vulkano" }
winit = "0.17"
winit = "0.18"

[target.'cfg(target_os = "macos")'.dependencies]
metal-rs = "0.6"
cocoa = "0.13"
metal = "0.13"
cocoa = "0.18"
objc = "0.2.2"
4 changes: 2 additions & 2 deletions vulkano-win/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ extern crate objc;
#[cfg(target_os = "macos")]
extern crate cocoa;
#[cfg(target_os = "macos")]
extern crate metal_rs as metal;
extern crate metal;

use std::borrow::Borrow;
use std::error;
Expand Down Expand Up @@ -59,7 +59,7 @@ pub fn required_extensions() -> InstanceExtensions {
/// Create a surface from the window type `W`. The surface borrows the window
/// to prevent it from being dropped before the surface.
pub fn create_vk_surface<W>(
window: W, instance: Arc<Instance>,
window: W, instance: Arc<Instance>
) -> Result<Arc<Surface<W>>, SurfaceCreationError>
where
W: SafeBorrow<winit::Window>,
Expand Down

0 comments on commit d507cf4

Please sign in to comment.