erupt/generated/extensions/
khr_maintenance1.rs

1// DO NOT EDIT: @generated by erupt's generator
2///<s>Vulkan Manual Page</s> · Constant
3#[doc(alias = "VK_KHR_MAINTENANCE_1_SPEC_VERSION")]
4pub const KHR_MAINTENANCE_1_SPEC_VERSION: u32 = 2;
5///<s>Vulkan Manual Page</s> · Constant
6#[doc(alias = "VK_KHR_MAINTENANCE_1_EXTENSION_NAME")]
7pub const KHR_MAINTENANCE_1_EXTENSION_NAME: *const std::os::raw::c_char = crate::cstr!(
8    "VK_KHR_maintenance1"
9);
10///<s>Vulkan Manual Page</s> · Constant
11#[deprecated]
12#[doc(alias = "VK_KHR_MAINTENANCE1_SPEC_VERSION")]
13pub const KHR_MAINTENANCE1_SPEC_VERSION: u32 = 2;
14///<s>Vulkan Manual Page</s> · Constant
15#[deprecated]
16#[doc(alias = "VK_KHR_MAINTENANCE1_EXTENSION_NAME")]
17pub const KHR_MAINTENANCE1_EXTENSION_NAME: *const std::os::raw::c_char = crate::cstr!(
18    "VK_KHR_maintenance1"
19);
20///<s>Vulkan Manual Page</s> · Constant
21pub const FN_TRIM_COMMAND_POOL_KHR: *const std::os::raw::c_char = crate::cstr!(
22    "vkTrimCommandPoolKHR"
23);
24///[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkCommandPoolTrimFlagsKHR.html) · Alias
25#[doc(alias = "VkCommandPoolTrimFlagsKHR")]
26#[allow(non_camel_case_types)]
27pub type CommandPoolTrimFlagsKHR = crate::vk1_1::CommandPoolTrimFlags;
28///[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkTrimCommandPoolKHR.html) · Alias
29#[allow(non_camel_case_types)]
30pub type PFN_vkTrimCommandPoolKHR = crate::vk1_1::PFN_vkTrimCommandPool;
31///Provided by [`crate::extensions::khr_maintenance1`]
32impl crate::vk1_0::FormatFeatureFlagBits {
33    pub const TRANSFER_SRC_KHR: Self = Self::TRANSFER_SRC;
34    pub const TRANSFER_DST_KHR: Self = Self::TRANSFER_DST;
35}
36///Provided by [`crate::extensions::khr_maintenance1`]
37impl crate::vk1_0::ImageCreateFlagBits {
38    pub const _2D_ARRAY_COMPATIBLE_KHR: Self = Self::_2D_ARRAY_COMPATIBLE;
39}
40///Provided by [`crate::extensions::khr_maintenance1`]
41impl crate::vk1_0::Result {
42    pub const ERROR_OUT_OF_POOL_MEMORY_KHR: Self = Self::ERROR_OUT_OF_POOL_MEMORY;
43}
44///Provided by [`crate::extensions::khr_maintenance1`]
45impl crate::DeviceLoader {
46    #[inline]
47    #[track_caller]
48    ///[Vulkan Manual Page](https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/vkTrimCommandPoolKHR.html) · Function
49    #[doc(alias = "vkTrimCommandPoolKHR")]
50    pub unsafe fn trim_command_pool_khr(
51        &self,
52        command_pool: crate::vk1_0::CommandPool,
53        flags: crate::vk1_1::CommandPoolTrimFlags,
54    ) -> () {
55        let _function = self.trim_command_pool_khr.expect(crate::NOT_LOADED_MESSAGE);
56        let _return = _function(self.handle, command_pool as _, flags as _);
57        ()
58    }
59}