From cea8001b47325ec1e98b93994f1191fef10c0e07 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Thu, 26 Sep 2024 11:48:37 +0200 Subject: [PATCH] extensions/ext: Add VK_EXT_depth_clamp_control --- Changelog.md | 1 + ash/src/extensions/ext/depth_clamp_control.rs | 17 +++++++++++++++++ ash/src/extensions/ext/mod.rs | 1 + 3 files changed, 19 insertions(+) create mode 100644 ash/src/extensions/ext/depth_clamp_control.rs diff --git a/Changelog.md b/Changelog.md index 25c0beb62..427aa05ed 100644 --- a/Changelog.md +++ b/Changelog.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Update Vulkan-Headers to 1.3.296 (#910) - Added `VK_EXT_metal_objects` device extension (#942) +- Added `VK_EXT_depth_clamp_control` device extension (#947) ## [0.38.0] - 2024-04-01 diff --git a/ash/src/extensions/ext/depth_clamp_control.rs b/ash/src/extensions/ext/depth_clamp_control.rs new file mode 100644 index 000000000..84561046b --- /dev/null +++ b/ash/src/extensions/ext/depth_clamp_control.rs @@ -0,0 +1,17 @@ +//! + +use crate::vk; + +impl crate::ext::depth_clamp_control::Device { + /// + #[inline] + #[doc(alias = "vkCmdSetDepthClampRangeEXT")] + pub unsafe fn cmd_set_depth_clamp_range( + &self, + command_buffer: vk::CommandBuffer, + depth_clamp_mode: vk::DepthClampModeEXT, + depth_clamp_range: &vk::DepthClampRangeEXT, + ) { + (self.fp.cmd_set_depth_clamp_range_ext)(command_buffer, depth_clamp_mode, depth_clamp_range) + } +} diff --git a/ash/src/extensions/ext/mod.rs b/ash/src/extensions/ext/mod.rs index 3f923b227..300b9f928 100644 --- a/ash/src/extensions/ext/mod.rs +++ b/ash/src/extensions/ext/mod.rs @@ -6,6 +6,7 @@ pub mod debug_marker; #[deprecated(note = "Please use the [DebugUtils](struct.DebugUtils.html) extension instead.")] pub mod debug_report; pub mod debug_utils; +pub mod depth_clamp_control; pub mod descriptor_buffer; pub mod extended_dynamic_state; pub mod extended_dynamic_state2;