Struct vulkano::instance::RawInstanceExtensions
source · pub struct RawInstanceExtensions(_);
Expand description
Set of extensions, not restricted to those vulkano knows about.
This is useful when interacting with external code that has statically-unknown extension requirements.
Implementations
sourceimpl RawInstanceExtensions
impl RawInstanceExtensions
sourcepub fn new<I>(extensions: I) -> Selfwhere
I: IntoIterator<Item = CString>,
pub fn new<I>(extensions: I) -> Selfwhere
I: IntoIterator<Item = CString>,
Constructs an extension set containing the supplied extensions.
sourcepub fn insert(&mut self, extension: CString)
pub fn insert(&mut self, extension: CString)
Adds an extension to the set if it is not already present.
sourcepub fn intersection(&self, other: &Self) -> Self
pub fn intersection(&self, other: &Self) -> Self
Returns the intersection of this set and another.
sourcepub fn difference(&self, other: &Self) -> Self
pub fn difference(&self, other: &Self) -> Self
Returns the difference of another set from this one.
pub fn iter(&self) -> Iter<'_, CString>
sourceimpl RawInstanceExtensions
impl RawInstanceExtensions
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,
Same as supported_by_core_raw()
, but allows specifying a loader.
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 RawInstanceExtensions
impl Clone for RawInstanceExtensions
sourcefn clone(&self) -> RawInstanceExtensions
fn clone(&self) -> RawInstanceExtensions
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 RawInstanceExtensions
impl Debug for RawInstanceExtensions
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 FromIterator<CString> for RawInstanceExtensions
impl FromIterator<CString> for RawInstanceExtensions
sourcefn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CString>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = CString>,
Creates a value from an iterator. Read more
sourceimpl PartialEq<RawInstanceExtensions> for RawInstanceExtensions
impl PartialEq<RawInstanceExtensions> for RawInstanceExtensions
sourcefn eq(&self, other: &RawInstanceExtensions) -> bool
fn eq(&self, other: &RawInstanceExtensions) -> bool
impl Eq for RawInstanceExtensions
impl StructuralEq for RawInstanceExtensions
impl StructuralPartialEq for RawInstanceExtensions
Auto Trait Implementations
impl RefUnwindSafe for RawInstanceExtensions
impl Send for RawInstanceExtensions
impl Sync for RawInstanceExtensions
impl Unpin for RawInstanceExtensions
impl UnwindSafe for RawInstanceExtensions
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.