diff --git a/CHANGELOG_VULKANO.md b/CHANGELOG_VULKANO.md index fbd903bb..ff196af9 100644 --- a/CHANGELOG_VULKANO.md +++ b/CHANGELOG_VULKANO.md @@ -1,5 +1,7 @@ # Unreleased +- Allow applications to access the instance and device pointers + # Version 0.18.0 (2020-03-11) - **Breaking** Update dependency `winit` 0.21 -> 0.22 diff --git a/vulkano/src/device/mod.rs b/vulkano/src/device/mod.rs index 71e5c467..6f8e2e8b 100644 --- a/vulkano/src/device/mod.rs +++ b/vulkano/src/device/mod.rs @@ -343,7 +343,7 @@ impl Device { /// Grants access to the pointers to the Vulkan functions of the device. #[inline] - pub(crate) fn pointers(&self) -> &vk::DevicePointers { + pub fn pointers(&self) -> &vk::DevicePointers { &self.vk } diff --git a/vulkano/src/instance/instance.rs b/vulkano/src/instance/instance.rs index 69a667c1..0196975b 100644 --- a/vulkano/src/instance/instance.rs +++ b/vulkano/src/instance/instance.rs @@ -435,7 +435,7 @@ impl Instance { /// Grants access to the Vulkan functions of the instance. #[inline] - pub(crate) fn pointers(&self) -> &vk::InstancePointers { + pub fn pointers(&self) -> &vk::InstancePointers { &self.vk }