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,
}
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.
Implementations
sourceimpl QueryPipelineStatisticFlags
impl QueryPipelineStatisticFlags
pub fn none() -> 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
sourceimpl Clone for QueryPipelineStatisticFlags
impl Clone for QueryPipelineStatisticFlags
sourcefn clone(&self) -> QueryPipelineStatisticFlags
fn clone(&self) -> QueryPipelineStatisticFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QueryPipelineStatisticFlags
impl Debug for QueryPipelineStatisticFlags
sourceimpl Default for QueryPipelineStatisticFlags
impl Default for QueryPipelineStatisticFlags
sourcefn default() -> QueryPipelineStatisticFlags
fn default() -> QueryPipelineStatisticFlags
Returns the “default value” for a type. Read more
sourceimpl From<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl From<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
sourcefn from(value: QueryPipelineStatisticFlags) -> QueryPipelineStatisticFlags
fn from(value: QueryPipelineStatisticFlags) -> QueryPipelineStatisticFlags
Converts to this type from the input type.
sourceimpl PartialEq<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
impl PartialEq<QueryPipelineStatisticFlags> for QueryPipelineStatisticFlags
sourcefn eq(&self, other: &QueryPipelineStatisticFlags) -> bool
fn eq(&self, other: &QueryPipelineStatisticFlags) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &QueryPipelineStatisticFlags) -> bool
fn ne(&self, other: &QueryPipelineStatisticFlags) -> bool
This method tests for !=
.
impl Copy for QueryPipelineStatisticFlags
impl Eq for QueryPipelineStatisticFlags
impl StructuralEq for QueryPipelineStatisticFlags
impl StructuralPartialEq for QueryPipelineStatisticFlags
Auto Trait Implementations
impl RefUnwindSafe for QueryPipelineStatisticFlags
impl Send for QueryPipelineStatisticFlags
impl Sync for QueryPipelineStatisticFlags
impl Unpin for QueryPipelineStatisticFlags
impl UnwindSafe for QueryPipelineStatisticFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more