pub struct InstanceCreateFlags(/* private fields */);Expand description
Flags specifying additional properties of an instance.
Implementations§
Source§impl InstanceCreateFlags
impl InstanceCreateFlags
Sourcepub const ENUMERATE_PORTABILITY: InstanceCreateFlags
pub const ENUMERATE_PORTABILITY: InstanceCreateFlags
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 empty() -> InstanceCreateFlags
pub const fn empty() -> InstanceCreateFlags
Returns a InstanceCreateFlags with none of the flags set.
Sourcepub const fn none() -> InstanceCreateFlags
👎Deprecated since 0.31.0: use empty instead
pub const fn none() -> InstanceCreateFlags
empty insteadReturns a InstanceCreateFlags with none of the flags set.
Sourcepub const fn intersects(self, other: InstanceCreateFlags) -> bool
pub const fn intersects(self, other: InstanceCreateFlags) -> bool
Returns whether any flags are set in both self and other.
Sourcepub const fn contains(self, other: InstanceCreateFlags) -> bool
pub const fn contains(self, other: InstanceCreateFlags) -> bool
Returns whether all flags in other are set in self.
Sourcepub const fn union(self, other: InstanceCreateFlags) -> InstanceCreateFlags
pub const fn union(self, other: InstanceCreateFlags) -> InstanceCreateFlags
Returns the union of self and other.
Sourcepub const fn intersection(
self,
other: InstanceCreateFlags,
) -> InstanceCreateFlags
pub const fn intersection( self, other: InstanceCreateFlags, ) -> InstanceCreateFlags
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: InstanceCreateFlags) -> InstanceCreateFlags
pub const fn difference(self, other: InstanceCreateFlags) -> InstanceCreateFlags
Returns self without the flags set in other.
Sourcepub const fn symmetric_difference(
self,
other: InstanceCreateFlags,
) -> InstanceCreateFlags
pub const fn symmetric_difference( self, other: InstanceCreateFlags, ) -> InstanceCreateFlags
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§type Output = InstanceCreateFlags
type Output = InstanceCreateFlags
& operator.Source§fn bitand(self, rhs: InstanceCreateFlags) -> InstanceCreateFlags
fn bitand(self, rhs: InstanceCreateFlags) -> InstanceCreateFlags
& operation. Read moreSource§impl BitAndAssign for InstanceCreateFlags
impl BitAndAssign for InstanceCreateFlags
Source§fn bitand_assign(&mut self, rhs: InstanceCreateFlags)
fn bitand_assign(&mut self, rhs: InstanceCreateFlags)
&= operation. Read moreSource§impl BitOr for InstanceCreateFlags
impl BitOr for InstanceCreateFlags
Source§type Output = InstanceCreateFlags
type Output = InstanceCreateFlags
| operator.Source§fn bitor(self, rhs: InstanceCreateFlags) -> InstanceCreateFlags
fn bitor(self, rhs: InstanceCreateFlags) -> InstanceCreateFlags
| operation. Read moreSource§impl BitOrAssign for InstanceCreateFlags
impl BitOrAssign for InstanceCreateFlags
Source§fn bitor_assign(&mut self, rhs: InstanceCreateFlags)
fn bitor_assign(&mut self, rhs: InstanceCreateFlags)
|= operation. Read moreSource§impl BitXor for InstanceCreateFlags
impl BitXor for InstanceCreateFlags
Source§type Output = InstanceCreateFlags
type Output = InstanceCreateFlags
^ operator.Source§fn bitxor(self, rhs: InstanceCreateFlags) -> InstanceCreateFlags
fn bitxor(self, rhs: InstanceCreateFlags) -> InstanceCreateFlags
^ operation. Read moreSource§impl BitXorAssign for InstanceCreateFlags
impl BitXorAssign for InstanceCreateFlags
Source§fn bitxor_assign(&mut self, rhs: InstanceCreateFlags)
fn bitxor_assign(&mut self, rhs: InstanceCreateFlags)
^= 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§fn default() -> InstanceCreateFlags
fn default() -> InstanceCreateFlags
Source§impl From<InstanceCreateFlags> for InstanceCreateFlags
impl From<InstanceCreateFlags> for InstanceCreateFlags
Source§fn from(val: InstanceCreateFlags) -> InstanceCreateFlags
fn from(val: InstanceCreateFlags) -> InstanceCreateFlags
Source§impl From<InstanceCreateFlags> for InstanceCreateFlags
impl From<InstanceCreateFlags> for InstanceCreateFlags
Source§fn from(val: InstanceCreateFlags) -> InstanceCreateFlags
fn from(val: InstanceCreateFlags) -> InstanceCreateFlags
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§type Output = InstanceCreateFlags
type Output = InstanceCreateFlags
- operator.Source§fn sub(self, rhs: InstanceCreateFlags) -> InstanceCreateFlags
fn sub(self, rhs: InstanceCreateFlags) -> InstanceCreateFlags
- operation. Read moreSource§impl SubAssign for InstanceCreateFlags
impl SubAssign for InstanceCreateFlags
Source§fn sub_assign(&mut self, rhs: InstanceCreateFlags)
fn sub_assign(&mut self, rhs: InstanceCreateFlags)
-= operation. Read more