mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
parent
c7ce269aee
commit
d507cf4555
15
.travis.yml
15
.travis.yml
@ -1,3 +1,7 @@
|
||||
os:
|
||||
- linux
|
||||
- osx
|
||||
|
||||
language: rust
|
||||
rust:
|
||||
- nightly
|
||||
@ -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
|
||||
@ -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,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`
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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>,
|
||||
|
Loading…
Reference in New Issue
Block a user