[][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 khr_16bit_storage: bool,
    pub khr_8bit_storage: bool,
    pub khr_storage_buffer_storage_class: bool,
    pub ext_debug_utils: bool,
    pub khr_multiview: bool,
    pub ext_full_screen_exclusive: 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: boolkhr_16bit_storage: boolkhr_8bit_storage: boolkhr_storage_buffer_storage_class: boolext_debug_utils: boolkhr_multiview: boolext_full_screen_exclusive: 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.

Implementations

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]

impl Copy for DeviceExtensions[src]

impl Debug for DeviceExtensions[src]

impl Eq 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 StructuralEq for DeviceExtensions[src]

impl StructuralPartialEq for DeviceExtensions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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.