Skip to content

Commit bc49477

Browse files
committed
extensions/ext: Add VK_EXT_depth_clamp_control
1 parent 020ef0c commit bc49477

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

Changelog.md

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

1212
- Added `VK_EXT_metal_objects` device extension (#942)
13+
- Added `VK_EXT_depth_clamp_control` device extension (#947)
1314

1415
## [0.38.0] - 2024-04-01
1516

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
//! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_depth_clamp_control.html>
2+
3+
use crate::vk;
4+
5+
impl crate::ext::depth_clamp_control::Device {
6+
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthClampRangeEXT.html>
7+
#[inline]
8+
#[doc(alias = "vkCmdSetDepthClampRangeEXT")]
9+
pub unsafe fn cmd_set_depth_clamp_range(
10+
&self,
11+
command_buffer: vk::CommandBuffer,
12+
depth_clamp_mode: vk::DepthClampModeEXT,
13+
depth_clamp_range: &vk::DepthClampRangeEXT,
14+
) {
15+
(self.fp.cmd_set_depth_clamp_range_ext)(command_buffer, depth_clamp_mode, depth_clamp_range)
16+
}
17+
}

ash/src/extensions/ext/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub mod debug_marker;
66
#[deprecated(note = "Please use the [DebugUtils](struct.DebugUtils.html) extension instead.")]
77
pub mod debug_report;
88
pub mod debug_utils;
9+
pub mod depth_clamp_control;
910
pub mod descriptor_buffer;
1011
pub mod extended_dynamic_state;
1112
pub mod extended_dynamic_state2;

0 commit comments

Comments
 (0)