Struct vulkano::query::QueryControlFlags
source · pub struct QueryControlFlags {
pub precise: bool,
pub _ne: NonExhaustive,
}
Expand description
Flags that control how a query is to be executed.
Fields§
§precise: bool
For occlusion queries, specifies that the result must reflect the exact number of tests passed. If not enabled, the query may return a result of 1 even if more fragments passed the test.
_ne: NonExhaustive
Implementations§
source§impl QueryControlFlags
impl QueryControlFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a QueryControlFlags
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 set in self
or other
, but not both.
Trait Implementations§
source§impl BitAnd<QueryControlFlags> for QueryControlFlags
impl BitAnd<QueryControlFlags> for QueryControlFlags
source§impl BitAndAssign<QueryControlFlags> for QueryControlFlags
impl BitAndAssign<QueryControlFlags> for QueryControlFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr<QueryControlFlags> for QueryControlFlags
impl BitOr<QueryControlFlags> for QueryControlFlags
source§impl BitOrAssign<QueryControlFlags> for QueryControlFlags
impl BitOrAssign<QueryControlFlags> for QueryControlFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor<QueryControlFlags> for QueryControlFlags
impl BitXor<QueryControlFlags> for QueryControlFlags
source§impl BitXorAssign<QueryControlFlags> for QueryControlFlags
impl BitXorAssign<QueryControlFlags> for QueryControlFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for QueryControlFlags
impl Clone for QueryControlFlags
source§fn clone(&self) -> QueryControlFlags
fn clone(&self) -> QueryControlFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for QueryControlFlags
impl Debug for QueryControlFlags
source§impl Default for QueryControlFlags
impl Default for QueryControlFlags
source§impl From<QueryControlFlags> for QueryControlFlags
impl From<QueryControlFlags> for QueryControlFlags
source§fn from(val: QueryControlFlags) -> Self
fn from(val: QueryControlFlags) -> Self
Converts to this type from the input type.
source§impl From<QueryControlFlags> for QueryControlFlags
impl From<QueryControlFlags> for QueryControlFlags
source§fn from(val: QueryControlFlags) -> Self
fn from(val: QueryControlFlags) -> Self
Converts to this type from the input type.
source§impl Hash for QueryControlFlags
impl Hash for QueryControlFlags
source§impl PartialEq<QueryControlFlags> for QueryControlFlags
impl PartialEq<QueryControlFlags> for QueryControlFlags
source§fn eq(&self, other: &QueryControlFlags) -> bool
fn eq(&self, other: &QueryControlFlags) -> bool
source§impl Sub<QueryControlFlags> for QueryControlFlags
impl Sub<QueryControlFlags> for QueryControlFlags
source§impl SubAssign<QueryControlFlags> for QueryControlFlags
impl SubAssign<QueryControlFlags> for QueryControlFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more