[][src]Struct vulkano::device::DeviceExtensions

pub struct DeviceExtensions {
    pub khr_swapchain: bool,
    pub khr_display_swapchain: bool,
    pub khr_sampler_mirror_clamp_to_edge: bool,
    pub khr_maintenance1: bool,
    pub khr_get_memory_requirements2: bool,
    pub khr_dedicated_allocation: bool,
    pub khr_incremental_present: bool,
    pub ext_debug_marker: bool,
    pub _unbuildable: Unbuildable,
}

List of extensions that are enabled or available.

Fields

khr_swapchain: boolkhr_display_swapchain: boolkhr_sampler_mirror_clamp_to_edge: boolkhr_maintenance1: boolkhr_get_memory_requirements2: boolkhr_dedicated_allocation: boolkhr_incremental_present: boolext_debug_marker: 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 DeviceExtensions[src]

pub fn none() -> DeviceExtensions[src]

Returns an Extensions object with all members set to false.

pub fn union(&self, other: &DeviceExtensions) -> DeviceExtensions[src]

Returns the union of this list and another list.

pub fn intersection(&self, other: &DeviceExtensions) -> DeviceExtensions[src]

Returns the intersection of this list and another list.

pub fn difference(&self, other: &DeviceExtensions) -> DeviceExtensions[src]

Returns the difference of another list from this list.

impl DeviceExtensions[src]

pub fn supported_by_device_raw(
    physical_device: PhysicalDevice
) -> Result<Self, SupportedExtensionsError>
[src]

See the docs of supported_by_device().

pub fn supported_by_device(physical_device: PhysicalDevice) -> Self[src]

Returns an Extensions object with extensions supported by the PhysicalDevice.

Trait Implementations

impl Clone for DeviceExtensions[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for DeviceExtensions[src]

impl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions[src]

impl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions[src]

impl PartialEq<DeviceExtensions> for DeviceExtensions[src]

impl Eq for DeviceExtensions[src]

impl Debug for DeviceExtensions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Content for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]