Skip to content

Commit

Permalink
extensions/ext: Add VK_EXT_depth_clamp_control
Browse files Browse the repository at this point in the history
  • Loading branch information
MarijnS95 committed Sep 26, 2024
1 parent 38e9df8 commit cea8001
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
17 changes: 17 additions & 0 deletions ash/src/extensions/ext/depth_clamp_control.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//! <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/VK_EXT_depth_clamp_control.html>

use crate::vk;

impl crate::ext::depth_clamp_control::Device {
/// <https://registry.khronos.org/vulkan/specs/1.3-extensions/man/html/vkCmdSetDepthClampRangeEXT.html>
#[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)
}
}
1 change: 1 addition & 0 deletions ash/src/extensions/ext/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cea8001

Please sign in to comment.