pub struct InstanceCreateFlags(/* private fields */);
Expand description
Flags specifying additional properties of an instance.
Implementations§
Source§impl InstanceCreateFlags
impl InstanceCreateFlags
Sourcepub const ENUMERATE_PORTABILITY: Self
pub const ENUMERATE_PORTABILITY: Self
Include portability subset devices when enumerating physical devices.
If you enable this flag, you must ensure that your program is prepared to handle the non-conformant aspects of these devices.
If this flag is not enabled, and there are no fully-conformant devices on the system, then
Instance::new
will return an IncompatibleDriver
error.
The default value is false
.
§Notes
If this flag is enabled, and the khr_portability_enumeration
extension is supported,
it will be enabled automatically when creating the instance.
If the extension is not supported, this flag will be ignored.
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns whether any flags are set in both self
and other
.
Sourcepub const fn contains(self, other: Self) -> bool
pub const fn contains(self, other: Self) -> bool
Returns whether all flags in other
are set in self
.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self
and other
.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns self
without the flags set in other
.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the flags that are set in self
or other
, but not in both.
Trait Implementations§
Source§impl BitAnd for InstanceCreateFlags
impl BitAnd for InstanceCreateFlags
Source§impl BitAndAssign for InstanceCreateFlags
impl BitAndAssign for InstanceCreateFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOr for InstanceCreateFlags
impl BitOr for InstanceCreateFlags
Source§impl BitOrAssign for InstanceCreateFlags
impl BitOrAssign for InstanceCreateFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXor for InstanceCreateFlags
impl BitXor for InstanceCreateFlags
Source§impl BitXorAssign for InstanceCreateFlags
impl BitXorAssign for InstanceCreateFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl Clone for InstanceCreateFlags
impl Clone for InstanceCreateFlags
Source§fn clone(&self) -> InstanceCreateFlags
fn clone(&self) -> InstanceCreateFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for InstanceCreateFlags
impl Debug for InstanceCreateFlags
Source§impl Default for InstanceCreateFlags
impl Default for InstanceCreateFlags
Source§impl From<InstanceCreateFlags> for InstanceCreateFlags
impl From<InstanceCreateFlags> for InstanceCreateFlags
Source§fn from(val: InstanceCreateFlags) -> Self
fn from(val: InstanceCreateFlags) -> Self
Source§impl From<InstanceCreateFlags> for InstanceCreateFlags
impl From<InstanceCreateFlags> for InstanceCreateFlags
Source§fn from(val: InstanceCreateFlags) -> Self
fn from(val: InstanceCreateFlags) -> Self
Source§impl Hash for InstanceCreateFlags
impl Hash for InstanceCreateFlags
Source§impl PartialEq for InstanceCreateFlags
impl PartialEq for InstanceCreateFlags
Source§impl Sub for InstanceCreateFlags
impl Sub for InstanceCreateFlags
Source§impl SubAssign for InstanceCreateFlags
impl SubAssign for InstanceCreateFlags
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more