From 4e3d38ac5b0bfb861a35355c99ca9e58e790d087 Mon Sep 17 00:00:00 2001 From: Austin Johnson Date: Fri, 15 May 2020 19:14:25 -0500 Subject: [PATCH] update half & metal; fix couple of warnings; add missing changelog entries (#1364) --- CHANGELOG_VK_SYS.md | 2 ++ CHANGELOG_VULKANO.md | 3 +++ vulkano-win/Cargo.toml | 2 +- vulkano/Cargo.toml | 2 +- vulkano/src/instance/layers.rs | 2 +- vulkano/src/instance/loader.rs | 2 +- 6 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG_VK_SYS.md b/CHANGELOG_VK_SYS.md index 14369ec5..92fb61a0 100644 --- a/CHANGELOG_VK_SYS.md +++ b/CHANGELOG_VK_SYS.md @@ -1,5 +1,7 @@ # Unreleased +- Added support for the physical storage buffer access. + # Version 0.5.1 (2020-02-09) - Added support for `VK_EXT_full_screen_exclusive` diff --git a/CHANGELOG_VULKANO.md b/CHANGELOG_VULKANO.md index ffcafafe..ea3ef075 100644 --- a/CHANGELOG_VULKANO.md +++ b/CHANGELOG_VULKANO.md @@ -1,5 +1,8 @@ # Unreleased +- Update dependency `half` 1.5 -> 1.6 +- Update MacOS dependency `metal` 0.17 -> 0.18 +- Added additional checks around image/device compatibility. - Fixed all warnings as of Rust 1.43.1 - Provides new API to fetch additional information of the Physical Device from the `PhysicalDeviceProperties2KHR` structure whenever it possible. In the current implementation only `subgroupSize` property is fetching. This interface can be extended in the future to obtain more metadata depending on community needs. - `dynamic-local-size` compute shader example added showing how to utilize `subgroupSize` to compute and set shader's local size in run time. diff --git a/vulkano-win/Cargo.toml b/vulkano-win/Cargo.toml index 2c39e90f..2c0142cb 100644 --- a/vulkano-win/Cargo.toml +++ b/vulkano-win/Cargo.toml @@ -16,6 +16,6 @@ winit = "0.22" vulkano = { version = "0.18.0", path = "../vulkano" } [target.'cfg(target_os = "macos")'.dependencies] -metal = "0.17.0" +metal = "0.18.0" cocoa = "0.20.0" objc = "0.2.7" diff --git a/vulkano/Cargo.toml b/vulkano/Cargo.toml index 1221600f..0347602e 100644 --- a/vulkano/Cargo.toml +++ b/vulkano/Cargo.toml @@ -19,4 +19,4 @@ shared_library = "0.1" smallvec = "1.2" lazy_static = "1.4" vk-sys = { version = "0.5.1", path = "../vk-sys" } -half = "1.5" +half = "1.6" diff --git a/vulkano/src/instance/layers.rs b/vulkano/src/instance/layers.rs index b56e8069..c179e613 100644 --- a/vulkano/src/instance/layers.rs +++ b/vulkano/src/instance/layers.rs @@ -59,7 +59,7 @@ where let entry_points = ptrs.entry_points(); let mut num = 0; - check_errors({ entry_points.EnumerateInstanceLayerProperties(&mut num, ptr::null_mut()) })?; + check_errors(entry_points.EnumerateInstanceLayerProperties(&mut num, ptr::null_mut()))?; let mut layers: Vec = Vec::with_capacity(num as usize); check_errors({ diff --git a/vulkano/src/instance/loader.rs b/vulkano/src/instance/loader.rs index 774a3404..b316914e 100644 --- a/vulkano/src/instance/loader.rs +++ b/vulkano/src/instance/loader.rs @@ -225,7 +225,7 @@ pub fn auto_loader( lazy_static! { static ref DEFAULT_LOADER: Result>, LoadingError> = - { def_loader_impl().map(FunctionPointers::new) }; + def_loader_impl().map(FunctionPointers::new); } match DEFAULT_LOADER.deref() {