Struct vulkano::instance::RawInstanceExtensions
[−]
[src]
pub struct RawInstanceExtensions(_);
Set of extensions, not restricted to those vulkano knows about.
This is useful when interacting with external code that has statically-unknown extension requirements.
Methods
impl RawInstanceExtensions
[src]
fn new<I>(extensions: I) -> Self where
I: IntoIterator<Item = CString>,
I: IntoIterator<Item = CString>,
Constructs an extension set containing the supplied extensions.
fn none() -> Self
Constructs an empty extension set.
fn insert(&mut self, extension: CString)
Adds an extension to the set if it is not already present.
fn intersection(&self, other: &Self) -> Self
Returns the intersection of this set and another.
fn difference(&self, other: &Self) -> Self
Returns the difference of another set from this one.
fn union(&self, other: &Self) -> Self
Returns the union of both extension sets
fn iter(&self) -> Iter<CString>
impl RawInstanceExtensions
[src]
fn supported_by_core_raw() -> Result<Self, SupportedExtensionsError>
See the docs of supported_by_core().
fn supported_by_core_raw_with_loader<L>(
ptrs: &FunctionPointers<L>
) -> Result<Self, SupportedExtensionsError> where
L: Loader,
ptrs: &FunctionPointers<L>
) -> Result<Self, SupportedExtensionsError> where
L: Loader,
Same as supported_by_core_raw()
, but allows specifying a loader.
fn supported_by_core() -> Result<Self, LoadingError>
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,
ptrs: &FunctionPointers<L>
) -> Result<Self, LoadingError> where
L: Loader,
Same as supported_by_core
, but allows specifying a loader.
Trait Implementations
impl Clone for RawInstanceExtensions
[src]
fn clone(&self) -> RawInstanceExtensions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for RawInstanceExtensions
[src]
impl PartialEq for RawInstanceExtensions
[src]
fn eq(&self, __arg_0: &RawInstanceExtensions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RawInstanceExtensions) -> bool
This method tests for !=
.
impl Debug for RawInstanceExtensions
[src]
impl FromIterator<CString> for RawInstanceExtensions
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = CString>,
T: IntoIterator<Item = CString>,
Creates a value from an iterator. Read more
impl<'a> From<&'a InstanceExtensions> for RawInstanceExtensions
[src]
fn from(x: &'a InstanceExtensions) -> Self
Performs the conversion.