Skip to content

Commit 020ef0c

Browse files
authored
extensions/ext: Add VK_EXT_metal_objects extension (#942)
1 parent c1f5ac7 commit 020ef0c

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased] - ReleaseDate
99

10+
### Added
11+
12+
- Added `VK_EXT_metal_objects` device extension (#942)
13+
1014
## [0.38.0] - 2024-04-01
1115

1216
With over two years of collecting breaking changes (since the `0.37.0` release in March 2022), April 2024 marks the next breaking release of `ash`. This release introduces an overhaul of all Vulkan structures, restructures modules around extensions, and separates extension wrappers between `Instance` and `Device` functions. The crate contains all bindings defined by the latest `1.3.281` Vulkan specification, and many old and new extensions have received a hand-written extension wrapper. For a full overview of all individual changes, see the list at the end of this post.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_metal_objects.html>
2+
3+
use crate::vk;
4+
5+
impl crate::ext::metal_objects::Device {
6+
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkExportMetalObjectsEXT.html>
7+
#[inline]
8+
pub unsafe fn export_metal_objects(
9+
&self,
10+
metal_objects_info: &mut vk::ExportMetalObjectsInfoEXT<'_>,
11+
) {
12+
(self.fp.export_metal_objects_ext)(self.handle, metal_objects_info)
13+
}
14+
}

ash/src/extensions/ext/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub mod host_image_copy;
1717
pub mod image_compression_control;
1818
pub mod image_drm_format_modifier;
1919
pub mod mesh_shader;
20+
pub mod metal_objects;
2021
pub mod metal_surface;
2122
pub mod pipeline_properties;
2223
pub mod private_data;

0 commit comments

Comments
 (0)