Struct vulkano::query::QueryResultFlags
source · pub struct QueryResultFlags(/* private fields */);
Expand description
Flags to control how the results of a query should be retrieved.
VK_QUERY_RESULT_64_BIT
is not included, as it is determined automatically via the
QueryResultElement
trait.
Implementations§
source§impl QueryResultFlags
impl QueryResultFlags
sourcepub const WITH_AVAILABILITY: Self = _
pub const WITH_AVAILABILITY: Self = _
Write an additional element to the end of each query’s results, indicating the availability of the results:
- Nonzero: The results are available, and have been written to the element(s) preceding.
- Zero: The results are not yet available, and have not been written.
sourcepub const PARTIAL: Self = _
pub const PARTIAL: Self = _
Allow writing partial results to the buffer, instead of waiting until they are fully available.
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: use empty
instead
pub const fn none() -> Self
empty
insteadReturns a QueryResultFlags
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 QueryResultFlags
impl BitAnd for QueryResultFlags
source§impl BitAndAssign for QueryResultFlags
impl BitAndAssign for QueryResultFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr for QueryResultFlags
impl BitOr for QueryResultFlags
source§impl BitOrAssign for QueryResultFlags
impl BitOrAssign for QueryResultFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor for QueryResultFlags
impl BitXor for QueryResultFlags
source§impl BitXorAssign for QueryResultFlags
impl BitXorAssign for QueryResultFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^=
operation. Read moresource§impl Clone for QueryResultFlags
impl Clone for QueryResultFlags
source§fn clone(&self) -> QueryResultFlags
fn clone(&self) -> QueryResultFlags
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 QueryResultFlags
impl Debug for QueryResultFlags
source§impl Default for QueryResultFlags
impl Default for QueryResultFlags
source§impl From<QueryResultFlags> for QueryResultFlags
impl From<QueryResultFlags> for QueryResultFlags
source§fn from(val: QueryResultFlags) -> Self
fn from(val: QueryResultFlags) -> Self
Converts to this type from the input type.
source§impl From<QueryResultFlags> for QueryResultFlags
impl From<QueryResultFlags> for QueryResultFlags
source§fn from(val: QueryResultFlags) -> Self
fn from(val: QueryResultFlags) -> Self
Converts to this type from the input type.
source§impl Hash for QueryResultFlags
impl Hash for QueryResultFlags
source§impl PartialEq for QueryResultFlags
impl PartialEq for QueryResultFlags
source§fn eq(&self, other: &QueryResultFlags) -> bool
fn eq(&self, other: &QueryResultFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Sub for QueryResultFlags
impl Sub for QueryResultFlags
source§impl SubAssign for QueryResultFlags
impl SubAssign for QueryResultFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Copy for QueryResultFlags
impl Eq for QueryResultFlags
impl StructuralEq for QueryResultFlags
impl StructuralPartialEq for QueryResultFlags
Auto Trait Implementations§
impl RefUnwindSafe for QueryResultFlags
impl Send for QueryResultFlags
impl Sync for QueryResultFlags
impl Unpin for QueryResultFlags
impl UnwindSafe for QueryResultFlags
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