[][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.


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.


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>

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 PartialEq<DeviceExtensions> for DeviceExtensions[src]

impl Copy 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 Clone for DeviceExtensions[src]

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

Performs copy-assignment from source. Read more

impl Debug for DeviceExtensions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Content for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

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