Skip to content

Commit 86fdd4c

Browse files
committed
generator: Do not generate code for "disabled" extensions
It is unlikely that disabled, reserved extensions (without naming whatsoever) are used through Ash bindings generated from Vulkan-Headers releases, and are best ignored to reduce diff noise and spurious issues [1] with unfinished extension definitions. This approach matches what is defined in the registry spec for `supported="disabled"` [2]: use `supported="disabled"` to indicate this extension should never be processed. [1]: KhronosGroup/Vulkan-Docs#1549 [2]: https://github.com/KhronosGroup/Vulkan-Docs/blob/b4e8cd820b2487bc892b391fb26b49501473a6a6/registry.txt#L1302-L1306
1 parent 69c56ea commit 86fdd4c

File tree

7 files changed

+857
-4002
lines changed

7 files changed

+857
-4002
lines changed

ash/src/vk/bitflags.rs

+20
Original file line numberDiff line numberDiff line change
@@ -1143,6 +1143,26 @@ impl DeviceAddressBindingFlagsEXT {
11431143
}
11441144
#[repr(transparent)]
11451145
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
1146+
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPresentScalingFlagBitsEXT.html>"]
1147+
pub struct PresentScalingFlagsEXT(pub(crate) Flags);
1148+
vk_bitflags_wrapped!(PresentScalingFlagsEXT, Flags);
1149+
impl PresentScalingFlagsEXT {
1150+
pub const ONE_TO_ONE: Self = Self(0b1);
1151+
pub const ASPECT_RATIO_STRETCH: Self = Self(0b10);
1152+
pub const STRETCH: Self = Self(0b100);
1153+
}
1154+
#[repr(transparent)]
1155+
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
1156+
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkPresentGravityFlagBitsEXT.html>"]
1157+
pub struct PresentGravityFlagsEXT(pub(crate) Flags);
1158+
vk_bitflags_wrapped!(PresentGravityFlagsEXT, Flags);
1159+
impl PresentGravityFlagsEXT {
1160+
pub const MIN: Self = Self(0b1);
1161+
pub const MAX: Self = Self(0b10);
1162+
pub const CENTERED: Self = Self(0b100);
1163+
}
1164+
#[repr(transparent)]
1165+
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
11461166
#[doc = "<https://www.khronos.org/registry/vulkan/specs/1.3-extensions/man/html/VkVideoCodecOperationFlagBitsKHR.html>"]
11471167
pub struct VideoCodecOperationFlagsKHR(pub(crate) Flags);
11481168
vk_bitflags_wrapped!(VideoCodecOperationFlagsKHR, Flags);

ash/src/vk/const_debugs.rs

+87-123
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)