Struct vulkano::device::RawDeviceExtensions
source · pub struct RawDeviceExtensions(_);
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 RawDeviceExtensions
impl RawDeviceExtensions
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 RawDeviceExtensions
impl RawDeviceExtensions
sourcepub fn supported_by_device_raw(
physical_device: PhysicalDevice<'_>
) -> Result<Self, SupportedExtensionsError>
pub fn supported_by_device_raw(
physical_device: PhysicalDevice<'_>
) -> Result<Self, SupportedExtensionsError>
See the docs of supported_by_device().
sourcepub fn supported_by_device(physical_device: PhysicalDevice<'_>) -> Self
pub fn supported_by_device(physical_device: PhysicalDevice<'_>) -> Self
Returns an Extensions
object with extensions supported by the PhysicalDevice
.
Trait Implementations
sourceimpl Clone for RawDeviceExtensions
impl Clone for RawDeviceExtensions
sourcefn clone(&self) -> RawDeviceExtensions
fn clone(&self) -> RawDeviceExtensions
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 RawDeviceExtensions
impl Debug for RawDeviceExtensions
sourceimpl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
impl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
sourcefn from(x: &'a DeviceExtensions) -> Self
fn from(x: &'a DeviceExtensions) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions
impl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions
sourcefn from(x: &'a RawDeviceExtensions) -> Self
fn from(x: &'a RawDeviceExtensions) -> Self
Converts to this type from the input type.
sourceimpl FromIterator<CString> for RawDeviceExtensions
impl FromIterator<CString> for RawDeviceExtensions
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<RawDeviceExtensions> for RawDeviceExtensions
impl PartialEq<RawDeviceExtensions> for RawDeviceExtensions
sourcefn eq(&self, other: &RawDeviceExtensions) -> bool
fn eq(&self, other: &RawDeviceExtensions) -> bool
impl Eq for RawDeviceExtensions
impl StructuralEq for RawDeviceExtensions
impl StructuralPartialEq for RawDeviceExtensions
Auto Trait Implementations
impl RefUnwindSafe for RawDeviceExtensions
impl Send for RawDeviceExtensions
impl Sync for RawDeviceExtensions
impl Unpin for RawDeviceExtensions
impl UnwindSafe for RawDeviceExtensions
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.