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
sourceimpl InstanceExtensions
impl InstanceExtensions
sourcepub fn is_superset_of(&self, other: &Self) -> bool
pub fn is_superset_of(&self, other: &Self) -> bool
Returns true if self
is a superset of the parameter.
That is, for each extension of the parameter that is true, the corresponding value in self is true as well.
sourcepub const fn union(&self, other: &Self) -> Self
pub const fn union(&self, other: &Self) -> Self
Returns the union of this list and another list.
sourcepub const fn intersection(&self, other: &Self) -> Self
pub const fn intersection(&self, other: &Self) -> Self
Returns the intersection of this list and another list.
sourcepub const fn difference(&self, other: &Self) -> Self
pub const fn difference(&self, other: &Self) -> Self
Returns the difference of another list from this list.
sourceimpl InstanceExtensions
impl InstanceExtensions
sourcepub fn supported_by_core_raw() -> Result<Self, SupportedExtensionsError>
pub fn supported_by_core_raw() -> Result<Self, SupportedExtensionsError>
See the docs of supported_by_core().
sourcepub fn supported_by_core() -> Result<Self, LoadingError>
pub fn supported_by_core() -> Result<Self, LoadingError>
Returns an InstanceExtensions
object with extensions supported by the core driver.
sourcepub fn supported_by_core_with_loader<L>(
ptrs: &FunctionPointers<L>
) -> Result<Self, LoadingError> where
L: Loader,
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.
sourcepub fn supported_by_core_raw_with_loader<L>(
ptrs: &FunctionPointers<L>
) -> Result<Self, SupportedExtensionsError> where
L: Loader,
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().
Trait Implementations
sourceimpl Clone for InstanceExtensions
impl Clone for InstanceExtensions
sourcefn clone(&self) -> InstanceExtensions
fn clone(&self) -> InstanceExtensions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InstanceExtensions
impl Debug for InstanceExtensions
sourceimpl<'a> From<&'a InstanceExtensions> for Vec<CString>
impl<'a> From<&'a InstanceExtensions> for Vec<CString>
sourcefn from(x: &'a InstanceExtensions) -> Self
fn from(x: &'a InstanceExtensions) -> Self
Converts to this type from the input type.
sourceimpl<'a, I> From<I> for InstanceExtensions where
I: IntoIterator<Item = &'a CStr>,
impl<'a, I> From<I> for InstanceExtensions where
I: IntoIterator<Item = &'a CStr>,
sourceimpl PartialEq<InstanceExtensions> for InstanceExtensions
impl PartialEq<InstanceExtensions> for InstanceExtensions
sourcefn eq(&self, other: &InstanceExtensions) -> bool
fn eq(&self, other: &InstanceExtensions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InstanceExtensions) -> bool
fn ne(&self, other: &InstanceExtensions) -> bool
This method tests for !=
.
impl Copy for InstanceExtensions
impl Eq for InstanceExtensions
impl StructuralEq for InstanceExtensions
impl StructuralPartialEq for InstanceExtensions
Auto Trait Implementations
impl RefUnwindSafe for InstanceExtensions
impl Send for InstanceExtensions
impl Sync for InstanceExtensions
impl Unpin for InstanceExtensions
impl UnwindSafe for InstanceExtensions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more