Struct vulkano::instance::InstanceExtensions
[−]
[src]
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_mir_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, }
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_mir_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.
Methods
impl InstanceExtensions
[src]
fn none() -> InstanceExtensions
[src]
Returns an Extensions
object with all members set to false
.
fn intersection(&self, other: &InstanceExtensions) -> InstanceExtensions
[src]
Returns the intersection of this list and another list.
fn difference(&self, other: &InstanceExtensions) -> InstanceExtensions
[src]
Returns the difference of another list from this list.
impl InstanceExtensions
[src]
fn supported_by_core_raw() -> Result<Self, SupportedExtensionsError>
[src]
See the docs of supported_by_core().
fn supported_by_core_raw_with_loader<L>(
ptrs: &FunctionPointers<L>
) -> Result<Self, SupportedExtensionsError> where
L: Loader,
[src]
ptrs: &FunctionPointers<L>
) -> Result<Self, SupportedExtensionsError> where
L: Loader,
See the docs of supported_by_core().
fn supported_by_core() -> Result<Self, LoadingError>
[src]
Returns a RawExtensions
object with extensions supported by the core driver.
fn supported_by_core_with_loader<L>(
ptrs: &FunctionPointers<L>
) -> Result<Self, LoadingError> where
L: Loader,
[src]
ptrs: &FunctionPointers<L>
) -> Result<Self, LoadingError> where
L: Loader,
Same as supported_by_core
, but allows specifying a loader.
Trait Implementations
impl Copy for InstanceExtensions
[src]
impl Clone for InstanceExtensions
[src]
fn clone(&self) -> InstanceExtensions
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for InstanceExtensions
[src]
fn eq(&self, __arg_0: &InstanceExtensions) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InstanceExtensions) -> bool
[src]
This method tests for !=
.
impl Eq for InstanceExtensions
[src]
impl Debug for InstanceExtensions
[src]
impl<'a> From<&'a RawInstanceExtensions> for InstanceExtensions
[src]
fn from(x: &'a RawInstanceExtensions) -> Self
[src]
Performs the conversion.