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

pub struct DeviceExtensions {
Show fields 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 khr_external_memory: bool, pub khr_external_memory_fd: bool, pub ext_external_memory_dmabuf: bool, pub khr_portability_subset: 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: boolkhr_external_memory: boolkhr_external_memory_fd: boolext_external_memory_dmabuf: boolkhr_portability_subset: 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 const fn none() -> DeviceExtensions[src]

Returns an Extensions object with all members set to false.

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

Returns the union of this list and another list.

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

Returns the intersection of this list and another list.

pub const 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.

pub fn required_extensions(physical_device: PhysicalDevice<'_>) -> Self[src]

Returns an Extensions object with extensions required as well as supported by the PhysicalDevice. They are needed to be passed to Device::new(...).

Trait Implementations

impl Clone for DeviceExtensions[src]

fn clone(&self) -> DeviceExtensions[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for DeviceExtensions[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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

fn from(x: &'a DeviceExtensions) -> Self[src]

Performs the conversion.

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

fn from(x: &'a RawDeviceExtensions) -> Self[src]

Performs the conversion.

impl PartialEq<DeviceExtensions> for DeviceExtensions[src]

fn eq(&self, other: &DeviceExtensions) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &DeviceExtensions) -> bool[src]

This method tests for !=.

impl Copy for DeviceExtensions[src]

impl Eq 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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> Content for T[src]

pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut T>[src]

Builds a pointer to this type from a raw pointer.

pub fn is_size_suitable(usize) -> bool[src]

Returns true if the size is suitable to store a type like this.

pub fn indiv_size() -> usize[src]

Returns the size of an individual element.

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.