Struct vulkano::instance::RawDeviceExtensions
[−]
[src]
pub struct RawDeviceExtensions(_);
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 RawDeviceExtensions
[src]
fn new<'a, 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 iter(&self) -> Iter<CString>
impl RawDeviceExtensions
[src]
fn supported_by_device_raw(
physical_device: &PhysicalDevice
) -> Result<Self, SupportedExtensionsError>
physical_device: &PhysicalDevice
) -> Result<Self, SupportedExtensionsError>
See the docs of supported_by_device().
fn supported_by_device(physical_device: &PhysicalDevice) -> Self
Returns an Extensions
object with extensions supported by the PhysicalDevice
.
Trait Implementations
impl Clone for RawDeviceExtensions
[src]
fn clone(&self) -> RawDeviceExtensions
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 RawDeviceExtensions
[src]
impl PartialEq for RawDeviceExtensions
[src]
fn eq(&self, __arg_0: &RawDeviceExtensions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RawDeviceExtensions) -> bool
This method tests for !=
.
impl Debug for RawDeviceExtensions
[src]
impl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
[src]
fn from(x: &'a DeviceExtensions) -> Self
Performs the conversion.