* Upgrade to winit 0.18 (#1105)

*   Setup macOS travis CI.
This commit is contained in:
Lucas Kent 2018-11-08 12:12:20 +11:00 committed by GitHub
parent c7ce269aee
commit d507cf4555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 19 additions and 9 deletions

View File

@ -1,3 +1,7 @@
os:
- linux
- osx
language: rust
rust:
- nightly
@ -7,7 +11,7 @@ cache:
cargo
install:
- export CXX="g++-4.8"
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX="g++-4.8" ; fi
addons:
apt:
@ -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

View File

@ -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`

View File

@ -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"

View File

@ -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"

View File

@ -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;
@ -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>,