From 8b35b04f02f14e7a23e21b62ba51c0a9f10a1c17 Mon Sep 17 00:00:00 2001 From: Marijn Suijten Date: Fri, 30 Aug 2024 14:34:19 +0200 Subject: [PATCH] extensions/amd: Add VK_AMD_anti_lag extension --- Changelog.md | 1 + ash/src/extensions/amd/anti_lag.rs | 12 ++++++++++++ ash/src/extensions/amd/mod.rs | 1 + 3 files changed, 14 insertions(+) create mode 100644 ash/src/extensions/amd/anti_lag.rs diff --git a/Changelog.md b/Changelog.md index 69ec27626..8aa6c3735 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Added `VK_EXT_metal_objects` device extension (#942) +- Added `VK_AMD_anti_lag` device extension (#943) ## [0.38.0] - 2024-04-01 diff --git a/ash/src/extensions/amd/anti_lag.rs b/ash/src/extensions/amd/anti_lag.rs new file mode 100644 index 000000000..cd8cf8e83 --- /dev/null +++ b/ash/src/extensions/amd/anti_lag.rs @@ -0,0 +1,12 @@ +//! + +use crate::vk; + +impl crate::amd::anti_lag::Device { + /// + #[inline] + #[doc(alias = "vkAntiLagUpdateAMD")] + pub unsafe fn anti_lag_update(&self, data: &vk::AntiLagDataAMD<'_>) { + (self.fp.anti_lag_update_amd)(self.handle, data) + } +} diff --git a/ash/src/extensions/amd/mod.rs b/ash/src/extensions/amd/mod.rs index 2680d8ebe..232bdd4f1 100644 --- a/ash/src/extensions/amd/mod.rs +++ b/ash/src/extensions/amd/mod.rs @@ -1,2 +1,3 @@ +pub mod anti_lag; pub mod buffer_marker; pub mod shader_info;