Struct vulkano::device::DeviceExtensions
source · 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,
}
Expand description
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
ext_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.
Implementations
sourceimpl DeviceExtensions
impl DeviceExtensions
sourcepub fn none() -> DeviceExtensions
pub fn none() -> DeviceExtensions
Returns an Extensions
object with all members set to false
.
sourcepub fn intersection(&self, other: &DeviceExtensions) -> DeviceExtensions
pub fn intersection(&self, other: &DeviceExtensions) -> DeviceExtensions
Returns the intersection of this list and another list.
sourcepub fn difference(&self, other: &DeviceExtensions) -> DeviceExtensions
pub fn difference(&self, other: &DeviceExtensions) -> DeviceExtensions
Returns the difference of another list from this list.
sourceimpl DeviceExtensions
impl DeviceExtensions
sourcepub fn supported_by_device_raw(
physical_device: PhysicalDevice<'_>
) -> Result<Self, SupportedExtensionsError>
pub fn supported_by_device_raw(
physical_device: PhysicalDevice<'_>
) -> Result<Self, SupportedExtensionsError>
See the docs of supported_by_device().
sourcepub fn supported_by_device(physical_device: PhysicalDevice<'_>) -> Self
pub fn supported_by_device(physical_device: PhysicalDevice<'_>) -> Self
Returns an Extensions
object with extensions supported by the PhysicalDevice
.
Trait Implementations
sourceimpl Clone for DeviceExtensions
impl Clone for DeviceExtensions
sourcefn clone(&self) -> DeviceExtensions
fn clone(&self) -> DeviceExtensions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DeviceExtensions
impl Debug for DeviceExtensions
sourceimpl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
impl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
sourcefn from(x: &'a DeviceExtensions) -> Self
fn from(x: &'a DeviceExtensions) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions
impl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions
sourcefn from(x: &'a RawDeviceExtensions) -> Self
fn from(x: &'a RawDeviceExtensions) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<DeviceExtensions> for DeviceExtensions
impl PartialEq<DeviceExtensions> for DeviceExtensions
sourcefn eq(&self, other: &DeviceExtensions) -> bool
fn eq(&self, other: &DeviceExtensions) -> bool
impl Copy for DeviceExtensions
impl Eq for DeviceExtensions
impl StructuralEq for DeviceExtensions
impl StructuralPartialEq for DeviceExtensions
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Content for T
impl<T> Content for T
sourcefn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
fn ref_from_ptr<'a>(ptr: *mut c_void, size: usize) -> Option<*mut T>
Builds a pointer to this type from a raw pointer.
sourcefn is_size_suitable(size: usize) -> bool
fn is_size_suitable(size: usize) -> bool
Returns true if the size is suitable to store a type like this.
sourcefn indiv_size() -> usize
fn indiv_size() -> usize
Returns the size of an individual element.