[][src]Struct lava::VkQueryPipelineStatisticFlags

pub struct VkQueryPipelineStatisticFlags {
    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,
}

Wrapper for VkQueryPipelineStatisticFlags.

Use the macro VkQueryPipelineStatisticFlags! as an alternative method to create a structure. For example, these two snippets return the same value:

VkQueryPipelineStatisticFlags!(input_assembly_vertices, input_assembly_primitives)
VkQueryPipelineStatisticFlags {
    input_assembly_vertices: true,
    input_assembly_primitives: true,
    ..VkQueryPipelineStatisticFlags::none()
}

Fields

input_assembly_vertices: boolinput_assembly_primitives: boolvertex_shader_invocations: boolgeometry_shader_invocations: boolgeometry_shader_primitives: boolclipping_invocations: boolclipping_primitives: boolfragment_shader_invocations: booltessellation_control_shader_patches: booltessellation_evaluation_shader_invocations: boolcompute_shader_invocations: bool

Methods

impl VkQueryPipelineStatisticFlags[src]

pub fn none() -> Self[src]

Return a structure with all flags to false.

pub fn all() -> Self[src]

Return a structure with all flags to true.

pub fn to_u32(&self) -> u32[src]

Return the numerical bit flags corresponding to the structure (as described in the Vulkan specs).

pub fn from_u32(value: u32) -> Self[src]

Create a structure corresponding to the specified numerical bit flags.

Trait Implementations

impl Clone for VkQueryPipelineStatisticFlags[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for VkQueryPipelineStatisticFlags[src]

impl Debug for VkQueryPipelineStatisticFlags[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]