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
sourceimpl QueryControlFlags
impl QueryControlFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
Use 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
sourceimpl BitAnd<QueryControlFlags> for QueryControlFlags
impl BitAnd<QueryControlFlags> for QueryControlFlags
type Output = QueryControlFlags
type Output = QueryControlFlags
The resulting type after applying the
&
operator.sourceimpl BitAndAssign<QueryControlFlags> for QueryControlFlags
impl BitAndAssign<QueryControlFlags> for QueryControlFlags
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresourceimpl BitOr<QueryControlFlags> for QueryControlFlags
impl BitOr<QueryControlFlags> for QueryControlFlags
type Output = QueryControlFlags
type Output = QueryControlFlags
The resulting type after applying the
|
operator.sourceimpl BitOrAssign<QueryControlFlags> for QueryControlFlags
impl BitOrAssign<QueryControlFlags> for QueryControlFlags
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresourceimpl BitXor<QueryControlFlags> for QueryControlFlags
impl BitXor<QueryControlFlags> for QueryControlFlags
type Output = QueryControlFlags
type Output = QueryControlFlags
The resulting type after applying the
^
operator.sourceimpl BitXorAssign<QueryControlFlags> for QueryControlFlags
impl BitXorAssign<QueryControlFlags> for QueryControlFlags
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresourceimpl Clone for QueryControlFlags
impl Clone for QueryControlFlags
sourcefn clone(&self) -> QueryControlFlags
fn clone(&self) -> QueryControlFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for QueryControlFlags
impl Debug for QueryControlFlags
sourceimpl Default for QueryControlFlags
impl Default for QueryControlFlags
sourceimpl From<QueryControlFlags> for QueryControlFlags
impl From<QueryControlFlags> for QueryControlFlags
sourcefn from(val: QueryControlFlags) -> Self
fn from(val: QueryControlFlags) -> Self
Converts to this type from the input type.
sourceimpl From<QueryControlFlags> for QueryControlFlags
impl From<QueryControlFlags> for QueryControlFlags
sourcefn from(val: QueryControlFlags) -> Self
fn from(val: QueryControlFlags) -> Self
Converts to this type from the input type.
sourceimpl Hash for QueryControlFlags
impl Hash for QueryControlFlags
sourceimpl PartialEq<QueryControlFlags> for QueryControlFlags
impl PartialEq<QueryControlFlags> for QueryControlFlags
sourcefn eq(&self, other: &QueryControlFlags) -> bool
fn eq(&self, other: &QueryControlFlags) -> bool
sourceimpl Sub<QueryControlFlags> for QueryControlFlags
impl Sub<QueryControlFlags> for QueryControlFlags
type Output = QueryControlFlags
type Output = QueryControlFlags
The resulting type after applying the
-
operator.sourceimpl SubAssign<QueryControlFlags> for QueryControlFlags
impl SubAssign<QueryControlFlags> for QueryControlFlags
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for QueryControlFlags
impl Eq for QueryControlFlags
impl StructuralEq for QueryControlFlags
impl StructuralPartialEq for QueryControlFlags
Auto Trait Implementations
impl RefUnwindSafe for QueryControlFlags
impl Send for QueryControlFlags
impl Sync for QueryControlFlags
impl Unpin for QueryControlFlags
impl UnwindSafe for QueryControlFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more