[][src]Struct vulkano::instance::InstanceExtensions

pub struct InstanceExtensions {
    pub khr_surface: bool,
    pub khr_display: bool,
    pub khr_xlib_surface: bool,
    pub khr_xcb_surface: bool,
    pub khr_wayland_surface: bool,
    pub khr_android_surface: bool,
    pub khr_win32_surface: bool,
    pub ext_debug_utils: bool,
    pub mvk_ios_surface: bool,
    pub mvk_macos_surface: bool,
    pub mvk_moltenvk: bool,
    pub nn_vi_surface: bool,
    pub ext_swapchain_colorspace: bool,
    pub khr_get_physical_device_properties2: bool,
    pub _unbuildable: Unbuildable,

List of extensions that are enabled or available.


khr_surface: boolkhr_display: boolkhr_xlib_surface: boolkhr_xcb_surface: boolkhr_wayland_surface: boolkhr_android_surface: boolkhr_win32_surface: boolext_debug_utils: boolmvk_ios_surface: boolmvk_macos_surface: boolmvk_moltenvk: boolnn_vi_surface: boolext_swapchain_colorspace: boolkhr_get_physical_device_properties2: bool_unbuildable: Unbuildable

This field ensures that an instance of this Extensions struct can only be created through Vulkano functions and the update syntax. This way, extensions can be added to Vulkano without breaking existing code.


impl InstanceExtensions[src]

pub fn none() -> InstanceExtensions[src]

Returns an Extensions object with all members set to false.

pub fn union(&self, other: &InstanceExtensions) -> InstanceExtensions[src]

Returns the union of this list and another list.

pub fn intersection(&self, other: &InstanceExtensions) -> InstanceExtensions[src]

Returns the intersection of this list and another list.

pub fn difference(&self, other: &InstanceExtensions) -> InstanceExtensions[src]

Returns the difference of another list from this list.

impl InstanceExtensions[src]

pub fn supported_by_core_raw() -> Result<Self, SupportedExtensionsError>[src]

See the docs of supported_by_core().

pub fn supported_by_core_raw_with_loader<L>(
    ptrs: &FunctionPointers<L>
) -> Result<Self, SupportedExtensionsError> where
    L: Loader

See the docs of supported_by_core().

pub fn supported_by_core() -> Result<Self, LoadingError>[src]

Returns a RawExtensions object with extensions supported by the core driver.

pub fn supported_by_core_with_loader<L>(
    ptrs: &FunctionPointers<L>
) -> Result<Self, LoadingError> where
    L: Loader

Same as supported_by_core, but allows specifying a loader.

Trait Implementations

impl<'a> From<&'a InstanceExtensions> for RawInstanceExtensions[src]

impl<'a> From<&'a RawInstanceExtensions> for InstanceExtensions[src]

impl Clone for InstanceExtensions[src]

impl Copy for InstanceExtensions[src]

impl Eq for InstanceExtensions[src]

impl PartialEq<InstanceExtensions> for InstanceExtensions[src]

impl Debug for InstanceExtensions[src]

impl StructuralPartialEq for InstanceExtensions[src]

impl StructuralEq for InstanceExtensions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Content for T[src]

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

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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