diff --git a/vulkano/src/instance/extensions.rs b/vulkano/src/instance/extensions.rs index d9c16d17..e7663cb2 100644 --- a/vulkano/src/instance/extensions.rs +++ b/vulkano/src/instance/extensions.rs @@ -28,6 +28,9 @@ macro_rules! extensions { $( pub $ext: bool, )* + + /// Helper for future extensibility. + pub _hidden: Hidden, } impl $sname { @@ -36,6 +39,7 @@ macro_rules! extensions { pub fn none() -> $sname { $sname { $($ext: false,)* + _hidden: Hidden(()) } } @@ -53,6 +57,7 @@ macro_rules! extensions { $( $ext: self.$ext && other.$ext, )* + _hidden: Hidden(()) } } } @@ -197,6 +202,10 @@ impl From for SupportedExtensionsError { } } +/// Non-constructible helper for future extensibility of extension structs. +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Hidden(()); + #[cfg(test)] mod tests { use instance::InstanceExtensions;