Struct vulkano::instance::InstanceExtensions
source · pub struct InstanceExtensions {Show 37 fields
pub khr_android_surface: bool,
pub khr_device_group_creation: bool,
pub khr_display: bool,
pub khr_external_fence_capabilities: bool,
pub khr_external_memory_capabilities: bool,
pub khr_external_semaphore_capabilities: bool,
pub khr_get_display_properties2: bool,
pub khr_get_physical_device_properties2: bool,
pub khr_get_surface_capabilities2: bool,
pub khr_portability_enumeration: bool,
pub khr_surface: bool,
pub khr_surface_protected_capabilities: bool,
pub khr_wayland_surface: bool,
pub khr_win32_surface: bool,
pub khr_xcb_surface: bool,
pub khr_xlib_surface: bool,
pub ext_acquire_drm_display: bool,
pub ext_acquire_xlib_display: bool,
pub ext_debug_report: bool,
pub ext_debug_utils: bool,
pub ext_direct_mode_display: bool,
pub ext_directfb_surface: bool,
pub ext_display_surface_counter: bool,
pub ext_headless_surface: bool,
pub ext_metal_surface: bool,
pub ext_swapchain_colorspace: bool,
pub ext_validation_features: bool,
pub ext_validation_flags: bool,
pub fuchsia_imagepipe_surface: bool,
pub ggp_stream_descriptor_surface: bool,
pub google_surfaceless_query: bool,
pub mvk_ios_surface: bool,
pub mvk_macos_surface: bool,
pub nn_vi_surface: bool,
pub nv_external_memory_capabilities: bool,
pub qnx_screen_surface: bool,
pub _ne: NonExhaustive,
}
Expand description
List of extensions that are enabled or available.
Fields§
§khr_android_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
khr_device_group_creation: bool
- Vulkan documentation
- Promoted to Vulkan 1.1
khr_display: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
khr_external_fence_capabilities: bool
- Vulkan documentation
- Promoted to Vulkan 1.1
- Requires:
- One of: Vulkan API version 1.1, instance extension
khr_get_physical_device_properties2
- One of: Vulkan API version 1.1, instance extension
khr_external_memory_capabilities: bool
- Vulkan documentation
- Promoted to Vulkan 1.1
- Requires:
- One of: Vulkan API version 1.1, instance extension
khr_get_physical_device_properties2
- One of: Vulkan API version 1.1, instance extension
khr_external_semaphore_capabilities: bool
- Vulkan documentation
- Promoted to Vulkan 1.1
- Requires:
- One of: Vulkan API version 1.1, instance extension
khr_get_physical_device_properties2
- One of: Vulkan API version 1.1, instance extension
khr_get_display_properties2: bool
- Vulkan documentation
- Requires:
- instance extension
khr_display
- instance extension
khr_get_physical_device_properties2: bool
- Vulkan documentation
- Promoted to Vulkan 1.1
khr_get_surface_capabilities2: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
khr_portability_enumeration: bool
§khr_surface: bool
§khr_surface_protected_capabilities: bool
- Vulkan documentation
- Requires:
- Vulkan API version 1.1
- instance extension
khr_get_surface_capabilities2
khr_wayland_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
khr_win32_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
khr_xcb_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
khr_xlib_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
ext_acquire_drm_display: bool
- Vulkan documentation
- Requires:
- instance extension
ext_direct_mode_display
- instance extension
ext_acquire_xlib_display: bool
- Vulkan documentation
- Requires:
- instance extension
ext_direct_mode_display
- instance extension
ext_debug_report: bool
- Vulkan documentation
- Deprecated by
ext_debug_utils
ext_debug_utils: bool
§ext_direct_mode_display: bool
- Vulkan documentation
- Requires:
- instance extension
khr_display
- instance extension
ext_directfb_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
ext_display_surface_counter: bool
- Vulkan documentation
- Requires:
- instance extension
khr_display
- instance extension
ext_headless_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
ext_metal_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
ext_swapchain_colorspace: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
ext_validation_features: bool
§ext_validation_flags: bool
- Vulkan documentation
- Deprecated by
ext_validation_features
fuchsia_imagepipe_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
ggp_stream_descriptor_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
google_surfaceless_query: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
mvk_ios_surface: bool
- Vulkan documentation
- Deprecated by
ext_metal_surface
- Requires:
- instance extension
khr_surface
- instance extension
mvk_macos_surface: bool
- Vulkan documentation
- Deprecated by
ext_metal_surface
- Requires:
- instance extension
khr_surface
- instance extension
nn_vi_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
nv_external_memory_capabilities: bool
- Vulkan documentation
- Deprecated by
khr_external_memory_capabilities
qnx_screen_surface: bool
- Vulkan documentation
- Requires:
- instance extension
khr_surface
- instance extension
_ne: NonExhaustive
Implementations§
source§impl InstanceExtensions
impl InstanceExtensions
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns an Extensions
object with none of the members set.
sourcepub const fn intersects(&self, other: &Self) -> bool
pub const fn intersects(&self, other: &Self) -> bool
Returns whether any members are set in both self
and other
.
sourcepub const fn contains(&self, other: &Self) -> bool
pub const fn contains(&self, other: &Self) -> bool
Returns whether all members in other
are set in self
.
sourcepub const fn is_superset_of(&self, other: &Self) -> bool
👎Deprecated since 0.31.0: Use contains
instead.
pub const fn is_superset_of(&self, other: &Self) -> bool
contains
instead.Returns whether all members in other
are set in self
.
sourcepub const fn intersection(&self, other: &Self) -> Self
pub const fn intersection(&self, other: &Self) -> Self
Returns the intersection of self
and other
.
sourcepub const fn difference(&self, other: &Self) -> Self
pub const fn difference(&self, other: &Self) -> Self
Returns self
without the members set in other
.
sourcepub const fn symmetric_difference(&self, other: &Self) -> Self
pub const fn symmetric_difference(&self, other: &Self) -> Self
Returns the members set in self
or other
, but not both.
Trait Implementations§
source§impl BitAndAssign<InstanceExtensions> for InstanceExtensions
impl BitAndAssign<InstanceExtensions> for InstanceExtensions
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr<InstanceExtensions> for InstanceExtensions
impl BitOr<InstanceExtensions> for InstanceExtensions
source§impl BitOrAssign<InstanceExtensions> for InstanceExtensions
impl BitOrAssign<InstanceExtensions> for InstanceExtensions
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXorAssign<InstanceExtensions> for InstanceExtensions
impl BitXorAssign<InstanceExtensions> for InstanceExtensions
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for InstanceExtensions
impl Clone for InstanceExtensions
source§fn clone(&self) -> InstanceExtensions
fn clone(&self) -> InstanceExtensions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for InstanceExtensions
impl Debug for InstanceExtensions
source§impl Default for InstanceExtensions
impl Default for InstanceExtensions
source§impl<'a> From<&'a InstanceExtensions> for Vec<CString>
impl<'a> From<&'a InstanceExtensions> for Vec<CString>
source§fn from(x: &'a InstanceExtensions) -> Self
fn from(x: &'a InstanceExtensions) -> Self
Converts to this type from the input type.
source§impl<'a> FromIterator<&'a str> for InstanceExtensions
impl<'a> FromIterator<&'a str> for InstanceExtensions
source§impl PartialEq<InstanceExtensions> for InstanceExtensions
impl PartialEq<InstanceExtensions> for InstanceExtensions
source§fn eq(&self, other: &InstanceExtensions) -> bool
fn eq(&self, other: &InstanceExtensions) -> bool
source§impl Sub<InstanceExtensions> for InstanceExtensions
impl Sub<InstanceExtensions> for InstanceExtensions
source§impl SubAssign<InstanceExtensions> for InstanceExtensions
impl SubAssign<InstanceExtensions> for InstanceExtensions
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more