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: bool
khr_display_swapchain: bool
khr_sampler_mirror_clamp_to_edge: bool
khr_maintenance1: bool
khr_get_memory_requirements2: bool
khr_dedicated_allocation: bool
khr_incremental_present: bool
khr_16bit_storage: bool
khr_8bit_storage: bool
khr_storage_buffer_storage_class: bool
ext_debug_utils: bool
khr_multiview: bool
ext_full_screen_exclusive: bool
khr_external_memory: bool
khr_external_memory_fd: bool
ext_external_memory_dmabuf: bool
khr_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]
impl DeviceExtensions
[src]pub const fn none() -> 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]
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]
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]
pub const fn difference(&self, other: &DeviceExtensions) -> DeviceExtensions
[src]Returns the difference of another list from this list.
impl DeviceExtensions
[src]
impl DeviceExtensions
[src]pub fn supported_by_device_raw(
physical_device: PhysicalDevice<'_>
) -> Result<Self, SupportedExtensionsError>
[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]
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]
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]
impl Clone for DeviceExtensions
[src]fn clone(&self) -> 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]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DeviceExtensions
[src]
impl Debug for DeviceExtensions
[src]impl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
[src]
impl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
[src]fn from(x: &'a DeviceExtensions) -> Self
[src]
fn from(x: &'a DeviceExtensions) -> Self
[src]Performs the conversion.
impl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions
[src]
impl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions
[src]fn from(x: &'a RawDeviceExtensions) -> Self
[src]
fn from(x: &'a RawDeviceExtensions) -> Self
[src]Performs the conversion.
impl PartialEq<DeviceExtensions> for DeviceExtensions
[src]
impl PartialEq<DeviceExtensions> for DeviceExtensions
[src]fn eq(&self, other: &DeviceExtensions) -> bool
[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]
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
impl RefUnwindSafe for DeviceExtensions
impl Send for DeviceExtensions
impl Sync for DeviceExtensions
impl Unpin for DeviceExtensions
impl UnwindSafe for DeviceExtensions
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Content for T
[src]
impl<T> Content for T
[src]pub fn ref_from_ptr(*mut c_void, usize) -> Option<*mut 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]
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]
pub fn indiv_size() -> usize
[src]Returns the size of an individual element.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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