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§
source§impl QueryResultFlags
impl QueryResultFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
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§
source§impl BitAnd<QueryResultFlags> for QueryResultFlags
impl BitAnd<QueryResultFlags> for QueryResultFlags
source§impl BitAndAssign<QueryResultFlags> for QueryResultFlags
impl BitAndAssign<QueryResultFlags> for QueryResultFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&=
operation. Read moresource§impl BitOr<QueryResultFlags> for QueryResultFlags
impl BitOr<QueryResultFlags> for QueryResultFlags
source§impl BitOrAssign<QueryResultFlags> for QueryResultFlags
impl BitOrAssign<QueryResultFlags> for QueryResultFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moresource§impl BitXor<QueryResultFlags> for QueryResultFlags
impl BitXor<QueryResultFlags> for QueryResultFlags
source§impl BitXorAssign<QueryResultFlags> for QueryResultFlags
impl BitXorAssign<QueryResultFlags> 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<QueryResultFlags> for QueryResultFlags
impl PartialEq<QueryResultFlags> for QueryResultFlags
source§fn eq(&self, other: &QueryResultFlags) -> bool
fn eq(&self, other: &QueryResultFlags) -> bool
source§impl Sub<QueryResultFlags> for QueryResultFlags
impl Sub<QueryResultFlags> for QueryResultFlags
source§impl SubAssign<QueryResultFlags> for QueryResultFlags
impl SubAssign<QueryResultFlags> for QueryResultFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read more