Struct vulkano::query::QueryResultFlags
source · [−]pub struct QueryResultFlags {
pub wait: bool,
pub with_availability: bool,
pub partial: bool,
pub _ne: NonExhaustive,
}
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.
Fields
wait: bool
Wait for the results to become available before writing the results.
with_availability: bool
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.
partial: bool
Allow writing partial results to the buffer, instead of waiting until they are fully available.
_ne: NonExhaustive
Implementations
sourceimpl QueryResultFlags
impl QueryResultFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
Use empty
instead.
Returns 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 set in self
or other
, but not both.
Trait Implementations
sourceimpl BitAnd<QueryResultFlags> for QueryResultFlags
impl BitAnd<QueryResultFlags> for QueryResultFlags
type Output = QueryResultFlags
type Output = QueryResultFlags
&
operator.sourceimpl BitAndAssign<QueryResultFlags> for QueryResultFlags
impl BitAndAssign<QueryResultFlags> for QueryResultFlags
sourcefn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresourceimpl BitOr<QueryResultFlags> for QueryResultFlags
impl BitOr<QueryResultFlags> for QueryResultFlags
type Output = QueryResultFlags
type Output = QueryResultFlags
|
operator.sourceimpl BitOrAssign<QueryResultFlags> for QueryResultFlags
impl BitOrAssign<QueryResultFlags> for QueryResultFlags
sourcefn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresourceimpl BitXor<QueryResultFlags> for QueryResultFlags
impl BitXor<QueryResultFlags> for QueryResultFlags
type Output = QueryResultFlags
type Output = QueryResultFlags
^
operator.sourceimpl BitXorAssign<QueryResultFlags> for QueryResultFlags
impl BitXorAssign<QueryResultFlags> for QueryResultFlags
sourcefn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresourceimpl Clone for QueryResultFlags
impl Clone for QueryResultFlags
sourcefn clone(&self) -> QueryResultFlags
fn clone(&self) -> QueryResultFlags
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for QueryResultFlags
impl Debug for QueryResultFlags
sourceimpl Default for QueryResultFlags
impl Default for QueryResultFlags
sourceimpl From<QueryResultFlags> for QueryResultFlags
impl From<QueryResultFlags> for QueryResultFlags
sourcefn from(val: QueryResultFlags) -> Self
fn from(val: QueryResultFlags) -> Self
sourceimpl From<QueryResultFlags> for QueryResultFlags
impl From<QueryResultFlags> for QueryResultFlags
sourcefn from(val: QueryResultFlags) -> Self
fn from(val: QueryResultFlags) -> Self
sourceimpl Hash for QueryResultFlags
impl Hash for QueryResultFlags
sourceimpl PartialEq<QueryResultFlags> for QueryResultFlags
impl PartialEq<QueryResultFlags> for QueryResultFlags
sourcefn eq(&self, other: &QueryResultFlags) -> bool
fn eq(&self, other: &QueryResultFlags) -> bool
sourceimpl Sub<QueryResultFlags> for QueryResultFlags
impl Sub<QueryResultFlags> for QueryResultFlags
type Output = QueryResultFlags
type Output = QueryResultFlags
-
operator.sourceimpl SubAssign<QueryResultFlags> for QueryResultFlags
impl SubAssign<QueryResultFlags> for QueryResultFlags
sourcefn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more