pub struct InstanceExtensions {
Show 39 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_surface_maintenance1: 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 lunarg_direct_driver_loading: 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
§khr_device_group_creation: bool
§khr_display: bool
§khr_external_fence_capabilities: bool
§khr_external_memory_capabilities: bool
§khr_external_semaphore_capabilities: bool
§khr_get_display_properties2: bool
§khr_get_physical_device_properties2: bool
§khr_get_surface_capabilities2: bool
§khr_portability_enumeration: bool§khr_surface: bool§khr_surface_protected_capabilities: bool
§khr_wayland_surface: bool
§khr_win32_surface: bool
§khr_xcb_surface: bool
§khr_xlib_surface: bool
§ext_acquire_drm_display: bool
§ext_acquire_xlib_display: bool
§ext_debug_report: bool§ext_debug_utils: bool§ext_direct_mode_display: bool
§ext_directfb_surface: bool
§ext_display_surface_counter: bool
§ext_headless_surface: bool
§ext_metal_surface: bool
§ext_surface_maintenance1: bool
§ext_swapchain_colorspace: bool
§ext_validation_features: bool§ext_validation_flags: bool§fuchsia_imagepipe_surface: bool
§ggp_stream_descriptor_surface: bool
§google_surfaceless_query: bool
§lunarg_direct_driver_loading: bool§mvk_ios_surface: bool
§mvk_macos_surface: bool
§nn_vi_surface: bool
§nv_external_memory_capabilities: bool§qnx_screen_surface: bool
§_ne: NonExhaustive

Implementations§

source§

impl InstanceExtensions

source

pub const fn empty() -> Self

Returns an Extensions object with none of the members set.

source

pub const fn none() -> Self

👎Deprecated since 0.31.0: use empty instead

Returns an Extensions object with none of the members set.

source

pub const fn intersects(&self, other: &Self) -> bool

Returns whether any members are set in both self and other.

source

pub const fn contains(&self, other: &Self) -> bool

Returns whether all members in other are set in self.

source

pub const fn is_superset_of(&self, other: &Self) -> bool

👎Deprecated since 0.31.0: use contains instead

Returns whether all members in other are set in self.

source

pub const fn union(&self, other: &Self) -> Self

Returns the union of self and other.

source

pub const fn intersection(&self, other: &Self) -> Self

Returns the intersection of self and other.

source

pub const fn difference(&self, other: &Self) -> Self

Returns self without the members set in other.

source

pub const fn symmetric_difference(&self, other: &Self) -> Self

Returns the members set in self or other, but not both.

Trait Implementations§

source§

impl BitAnd for InstanceExtensions

§

type Output = InstanceExtensions

The resulting type after applying the & operator.
source§

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
source§

impl BitAndAssign for InstanceExtensions

source§

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
source§

impl BitOr for InstanceExtensions

§

type Output = InstanceExtensions

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
source§

impl BitOrAssign for InstanceExtensions

source§

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
source§

impl BitXor for InstanceExtensions

§

type Output = InstanceExtensions

The resulting type after applying the ^ operator.
source§

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
source§

impl BitXorAssign for InstanceExtensions

source§

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
source§

impl Clone for InstanceExtensions

source§

fn clone(&self) -> InstanceExtensions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InstanceExtensions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for InstanceExtensions

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a> From<&'a InstanceExtensions> for Vec<CString>

source§

fn from(x: &'a InstanceExtensions) -> Self

Converts to this type from the input type.
source§

impl<'a> FromIterator<&'a str> for InstanceExtensions

source§

fn from_iter<I>(iter: I) -> Selfwhere I: IntoIterator<Item = &'a str>,

Creates a value from an iterator. Read more
source§

impl IntoIterator for InstanceExtensions

§

type Item = (&'static str, bool)

The type of the elements being iterated over.
§

type IntoIter = IntoIter<<InstanceExtensions as IntoIterator>::Item, 38>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl PartialEq for InstanceExtensions

source§

fn eq(&self, other: &InstanceExtensions) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Sub for InstanceExtensions

§

type Output = InstanceExtensions

The resulting type after applying the - operator.
source§

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
source§

impl SubAssign for InstanceExtensions

source§

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
source§

impl Copy for InstanceExtensions

source§

impl Eq for InstanceExtensions

source§

impl StructuralEq for InstanceExtensions

source§

impl StructuralPartialEq for InstanceExtensions

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.