Struct vulkano::query::QueryPipelineStatisticFlags
source · pub struct QueryPipelineStatisticFlags {
pub input_assembly_vertices: bool,
pub input_assembly_primitives: bool,
pub vertex_shader_invocations: bool,
pub geometry_shader_invocations: bool,
pub geometry_shader_primitives: bool,
pub clipping_invocations: bool,
pub clipping_primitives: bool,
pub fragment_shader_invocations: bool,
pub tessellation_control_shader_patches: bool,
pub tessellation_evaluation_shader_invocations: bool,
pub compute_shader_invocations: bool,
pub _ne: NonExhaustive,
}
Expand description
For pipeline statistics queries, the statistics that should be gathered.
Fields§
§input_assembly_vertices: bool
Count the number of vertices processed by the input assembly.
input_assembly_primitives: bool
Count the number of primitives processed by the input assembly.
vertex_shader_invocations: bool
Count the number of times a vertex shader is invoked.
geometry_shader_invocations: bool
Count the number of times a geometry shader is invoked.
geometry_shader_primitives: bool
Count the number of primitives generated by geometry shaders.
clipping_invocations: bool
Count the number of times the clipping stage is invoked on a primitive.
clipping_primitives: bool
Count the number of primitives that are output by the clipping stage.
fragment_shader_invocations: bool
Count the number of times a fragment shader is invoked.
tessellation_control_shader_patches: bool
Count the number of patches processed by a tessellation control shader.
tessellation_evaluation_shader_invocations: bool
Count the number of times a tessellation evaluation shader is invoked.
compute_shader_invocations: bool
Count the number of times a compute shader is invoked.
_ne: NonExhaustive
Implementations§
source§impl QueryPipelineStatisticFlags
impl QueryPipelineStatisticFlags
sourcepub const fn none() -> Self
👎Deprecated since 0.31.0: Use empty
instead.
pub const fn none() -> Self
empty
instead.Returns a QueryPipelineStatisticFlags
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.
source§impl QueryPipelineStatisticFlags
impl QueryPipelineStatisticFlags
sourcepub const fn count(&self) -> DeviceSize
pub const fn count(&self) -> DeviceSize
Returns the number of flags that are set to true
.
sourcepub const fn is_compute(&self) -> bool
pub const fn is_compute(&self) -> bool
Returns true
if any flags referring to compute operations are set to true
.
sourcepub const fn is_graphics(&self) -> bool
pub const fn is_graphics(&self) -> bool
Returns true
if any flags referring to graphics operations are set to true
.
Trait Implementations§
source§impl BitAndAssign<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl BitAndAssign<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moresource§impl BitOrAssign<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl BitOrAssign<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moresource§impl BitXorAssign<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl BitXorAssign<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moresource§impl Clone for QueryPipelineStatisticFlags
impl Clone for QueryPipelineStatisticFlags
source§fn clone(&self) -> QueryPipelineStatisticFlags
fn clone(&self) -> QueryPipelineStatisticFlags
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryPipelineStatisticFlags
impl Debug for QueryPipelineStatisticFlags
source§impl From<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl From<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
source§fn from(val: QueryPipelineStatisticFlags) -> Self
fn from(val: QueryPipelineStatisticFlags) -> Self
source§impl From<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl From<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
source§fn from(val: QueryPipelineStatisticFlags) -> Self
fn from(val: QueryPipelineStatisticFlags) -> Self
source§impl Hash for QueryPipelineStatisticFlags
impl Hash for QueryPipelineStatisticFlags
source§impl PartialEq<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl PartialEq<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
source§fn eq(&self, other: &QueryPipelineStatisticFlags) -> bool
fn eq(&self, other: &QueryPipelineStatisticFlags) -> bool
source§impl SubAssign<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl SubAssign<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read more