Struct vulkano::instance::InstanceCreateFlags
source · 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 none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a InstanceCreateFlags
with none of the flags set.
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§fn eq(&self, other: &InstanceCreateFlags) -> bool
fn eq(&self, other: &InstanceCreateFlags) -> bool
self
and other
values to be equal, and is used
by ==
.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