Struct vulkano::device::DeviceExtensions [−][src]
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.
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.
Methods
impl DeviceExtensions
[src]
impl DeviceExtensions
pub fn none() -> DeviceExtensions
[src]
pub fn none() -> DeviceExtensions
Returns an Extensions
object with all members set to false
.
pub fn intersection(&self, other: &DeviceExtensions) -> DeviceExtensions
[src]
pub fn intersection(&self, other: &DeviceExtensions) -> DeviceExtensions
Returns the intersection of this list and another list.
pub fn difference(&self, other: &DeviceExtensions) -> DeviceExtensions
[src]
pub fn difference(&self, other: &DeviceExtensions) -> DeviceExtensions
Returns the difference of another list from this list.
impl DeviceExtensions
[src]
impl DeviceExtensions
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>
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
Returns an Extensions
object with extensions supported by the PhysicalDevice
.
Trait Implementations
impl Copy for DeviceExtensions
[src]
impl Copy for DeviceExtensions
impl Clone for DeviceExtensions
[src]
impl Clone for DeviceExtensions
fn clone(&self) -> DeviceExtensions
[src]
fn clone(&self) -> DeviceExtensions
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)
Performs copy-assignment from source
. Read more
impl PartialEq for DeviceExtensions
[src]
impl PartialEq for DeviceExtensions
fn eq(&self, other: &DeviceExtensions) -> bool
[src]
fn eq(&self, other: &DeviceExtensions) -> bool
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
This method tests for !=
.
impl Eq for DeviceExtensions
[src]
impl Eq for DeviceExtensions
impl Debug for DeviceExtensions
[src]
impl Debug for DeviceExtensions
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
[src]
impl<'a> From<&'a DeviceExtensions> for RawDeviceExtensions
fn from(x: &'a DeviceExtensions) -> Self
[src]
fn from(x: &'a DeviceExtensions) -> Self
Performs the conversion.
impl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions
[src]
impl<'a> From<&'a RawDeviceExtensions> for DeviceExtensions
fn from(x: &'a RawDeviceExtensions) -> Self
[src]
fn from(x: &'a RawDeviceExtensions) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for DeviceExtensions
impl Send for DeviceExtensions
impl Sync for DeviceExtensions
impl Sync for DeviceExtensions