Skip to content

Commit 6870426

Browse files
committed
extensions/ext: Add VK_EXT_display_surface_counter extension
1 parent d23c5ab commit 6870426

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-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_display_surface_counter` instance extension (#933)
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: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_display_surface_counter.html>
2+
3+
use crate::prelude::*;
4+
use crate::vk;
5+
6+
impl crate::ext::display_surface_counter::Instance {
7+
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkGetPhysicalDeviceSurfaceCapabilities2EXT.html>
8+
#[inline]
9+
#[doc(alias = "vkGetPhysicalDeviceSurfaceCapabilities2EXT")]
10+
pub unsafe fn get_physical_device_surface_capabilities2(
11+
&self,
12+
physical_device: vk::PhysicalDevice,
13+
surface: vk::SurfaceKHR,
14+
surface_capabilities: &mut vk::SurfaceCapabilities2EXT<'_>,
15+
) -> VkResult<()> {
16+
(self.fp.get_physical_device_surface_capabilities2_ext)(
17+
physical_device,
18+
surface,
19+
surface_capabilities,
20+
)
21+
.result()
22+
}
23+
}

ash/src/extensions/ext/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pub mod debug_marker;
77
pub mod debug_report;
88
pub mod debug_utils;
99
pub mod descriptor_buffer;
10+
pub mod display_surface_counter;
1011
pub mod extended_dynamic_state;
1112
pub mod extended_dynamic_state2;
1213
pub mod extended_dynamic_state3;

0 commit comments

Comments
 (0)