Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extensions/ext: Add VK_EXT_depth_clamp_control #947

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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