Struct vulkano::instance::InstanceExtensions
source · pub struct InstanceExtensions {Show 15 fields
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_report: 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,
}
Expand description
List of extensions that are enabled or available.
Fields
khr_surface: bool
khr_display: bool
khr_xlib_surface: bool
khr_xcb_surface: bool
khr_wayland_surface: bool
khr_android_surface: bool
khr_win32_surface: bool
ext_debug_report: bool
mvk_ios_surface: bool
mvk_macos_surface: bool
mvk_moltenvk: bool
nn_vi_surface: bool
ext_swapchain_colorspace: bool
khr_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.
Implementations
sourceimpl InstanceExtensions
impl InstanceExtensions
sourcepub fn none() -> InstanceExtensions
pub fn none() -> InstanceExtensions
Returns an Extensions
object with all members set to false
.
sourcepub fn intersection(&self, other: &InstanceExtensions) -> InstanceExtensions
pub fn intersection(&self, other: &InstanceExtensions) -> InstanceExtensions
Returns the intersection of this list and another list.
sourcepub fn difference(&self, other: &InstanceExtensions) -> InstanceExtensions
pub fn difference(&self, other: &InstanceExtensions) -> InstanceExtensions
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_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().
sourcepub fn supported_by_core() -> Result<Self, LoadingError>
pub fn supported_by_core() -> Result<Self, LoadingError>
Returns a RawExtensions
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.
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 moresourceimpl Debug for InstanceExtensions
impl Debug for InstanceExtensions
sourceimpl<'a> From<&'a InstanceExtensions> for RawInstanceExtensions
impl<'a> From<&'a InstanceExtensions> for RawInstanceExtensions
sourcefn from(x: &'a InstanceExtensions) -> Self
fn from(x: &'a InstanceExtensions) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RawInstanceExtensions> for InstanceExtensions
impl<'a> From<&'a RawInstanceExtensions> for InstanceExtensions
sourcefn from(x: &'a RawInstanceExtensions) -> Self
fn from(x: &'a RawInstanceExtensions) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<InstanceExtensions> for InstanceExtensions
impl PartialEq<InstanceExtensions> for InstanceExtensions
sourcefn eq(&self, other: &InstanceExtensions) -> bool
fn eq(&self, other: &InstanceExtensions) -> bool
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.