pub struct QueryControlFlags(/* private fields */);
Expand description
Flags that control how a query is to be executed.
Implementations§
Source§impl QueryControlFlags
impl QueryControlFlags
Sourcepub const PRECISE: Self
pub const PRECISE: Self
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.
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 QueryControlFlags
impl BitAnd for QueryControlFlags
Source§impl BitAndAssign for QueryControlFlags
impl BitAndAssign for QueryControlFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moreSource§impl BitOr for QueryControlFlags
impl BitOr for QueryControlFlags
Source§impl BitOrAssign for QueryControlFlags
impl BitOrAssign for QueryControlFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl BitXor for QueryControlFlags
impl BitXor for QueryControlFlags
Source§impl BitXorAssign for QueryControlFlags
impl BitXorAssign 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 for QueryControlFlags
impl PartialEq for QueryControlFlags
Source§impl Sub for QueryControlFlags
impl Sub for QueryControlFlags
Source§impl SubAssign for QueryControlFlags
impl SubAssign for QueryControlFlags
Source§fn 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 StructuralPartialEq for QueryControlFlags
Auto Trait Implementations§
impl Freeze for QueryControlFlags
impl RefUnwindSafe for QueryControlFlags
impl Send for QueryControlFlags
impl Sync for QueryControlFlags
impl Unpin for QueryControlFlags
impl UnwindSafe for QueryControlFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more