Struct nannou::wgpu::PipelineStatisticsTypes [−]
#[repr(transparent)]pub struct PipelineStatisticsTypes { /* fields omitted */ }
Expand description
Flags for which pipeline data should be recorded.
The amount of values written when resolved depends on the amount of flags. If 3 flags are enabled, 3 64-bit values will be written per-query.
The order they are written is the order they are declared
in this bitflags. If you enabled CLIPPER_PRIMITIVES_OUT
and COMPUTE_SHADER_INVOCATIONS
, it would write 16 bytes,
the first 8 bytes being the primitive out value, the last 8
bytes being the compute shader invocation count.
Implementations
pub const VERTEX_SHADER_INVOCATIONS: PipelineStatisticsTypes
pub const VERTEX_SHADER_INVOCATIONS: PipelineStatisticsTypes
Amount of times the vertex shader is ran. Accounts for the vertex cache when doing indexed rendering.
pub const CLIPPER_INVOCATIONS: PipelineStatisticsTypes
pub const CLIPPER_INVOCATIONS: PipelineStatisticsTypes
Amount of times the clipper is invoked. This is also the amount of triangles output by the vertex shader.
pub const CLIPPER_PRIMITIVES_OUT: PipelineStatisticsTypes
pub const CLIPPER_PRIMITIVES_OUT: PipelineStatisticsTypes
Amount of primitives that are not culled by the clipper. This is the amount of triangles that are actually on screen and will be rasterized and rendered.
Amount of times the fragment shader is ran. Accounts for fragment shaders running in 2x2 blocks in order to get derivatives.
Amount of times a compute shader is invoked. This will be equivalent to the dispatch count times the workgroup size.
pub const fn empty() -> PipelineStatisticsTypes
pub const fn empty() -> PipelineStatisticsTypes
Returns an empty set of flags
pub const fn all() -> PipelineStatisticsTypes
pub const fn all() -> PipelineStatisticsTypes
Returns the set containing all flags.
pub fn from_bits(bits: u8) -> Option<PipelineStatisticsTypes>
pub fn from_bits(bits: u8) -> Option<PipelineStatisticsTypes>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u8) -> PipelineStatisticsTypes
pub const fn from_bits_truncate(bits: u8) -> PipelineStatisticsTypes
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u8) -> PipelineStatisticsTypes
pub const unsafe fn from_bits_unchecked(bits: u8) -> PipelineStatisticsTypes
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: PipelineStatisticsTypes) -> bool
pub const fn intersects(&self, other: PipelineStatisticsTypes) -> bool
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: PipelineStatisticsTypes) -> bool
pub const fn contains(&self, other: PipelineStatisticsTypes) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: PipelineStatisticsTypes)
pub fn insert(&mut self, other: PipelineStatisticsTypes)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: PipelineStatisticsTypes)
pub fn remove(&mut self, other: PipelineStatisticsTypes)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: PipelineStatisticsTypes)
pub fn toggle(&mut self, other: PipelineStatisticsTypes)
Toggles the specified flags in-place.
pub fn set(&mut self, other: PipelineStatisticsTypes, value: bool)
pub fn set(&mut self, other: PipelineStatisticsTypes, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for PipelineStatisticsTypes
impl Binary for PipelineStatisticsTypes
pub fn bitand(self, other: PipelineStatisticsTypes) -> PipelineStatisticsTypes
pub fn bitand(self, other: PipelineStatisticsTypes) -> PipelineStatisticsTypes
Returns the intersection between the two sets of flags.
type Output = PipelineStatisticsTypes
type Output = PipelineStatisticsTypes
The resulting type after applying the &
operator.
pub fn bitand_assign(&mut self, other: PipelineStatisticsTypes)
pub fn bitand_assign(&mut self, other: PipelineStatisticsTypes)
Disables all flags disabled in the set.
pub fn bitor(self, other: PipelineStatisticsTypes) -> PipelineStatisticsTypes
pub fn bitor(self, other: PipelineStatisticsTypes) -> PipelineStatisticsTypes
Returns the union of the two sets of flags.
type Output = PipelineStatisticsTypes
type Output = PipelineStatisticsTypes
The resulting type after applying the |
operator.
pub fn bitor_assign(&mut self, other: PipelineStatisticsTypes)
pub fn bitor_assign(&mut self, other: PipelineStatisticsTypes)
Adds the set of flags.
pub fn bitxor(self, other: PipelineStatisticsTypes) -> PipelineStatisticsTypes
pub fn bitxor(self, other: PipelineStatisticsTypes) -> PipelineStatisticsTypes
Returns the left flags, but with all the right flags toggled.
type Output = PipelineStatisticsTypes
type Output = PipelineStatisticsTypes
The resulting type after applying the ^
operator.
pub fn bitxor_assign(&mut self, other: PipelineStatisticsTypes)
pub fn bitxor_assign(&mut self, other: PipelineStatisticsTypes)
Toggles the set of flags.
impl Clone for PipelineStatisticsTypes
impl Clone for PipelineStatisticsTypes
pub fn clone(&self) -> PipelineStatisticsTypes
pub fn clone(&self) -> PipelineStatisticsTypes
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl Debug for PipelineStatisticsTypes
impl Debug for PipelineStatisticsTypes
pub fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = PipelineStatisticsTypes>,
pub fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = PipelineStatisticsTypes>,
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
pub fn from_iter<T>(iterator: T) -> PipelineStatisticsTypes where
T: IntoIterator<Item = PipelineStatisticsTypes>,
pub fn from_iter<T>(iterator: T) -> PipelineStatisticsTypes where
T: IntoIterator<Item = PipelineStatisticsTypes>,
Creates a value from an iterator. Read more
impl Hash for PipelineStatisticsTypes
impl Hash for PipelineStatisticsTypes
impl LowerHex for PipelineStatisticsTypes
impl LowerHex for PipelineStatisticsTypes
impl Not for PipelineStatisticsTypes
impl Not for PipelineStatisticsTypes
pub fn not(self) -> PipelineStatisticsTypes
pub fn not(self) -> PipelineStatisticsTypes
Returns the complement of this set of flags.
type Output = PipelineStatisticsTypes
type Output = PipelineStatisticsTypes
The resulting type after applying the !
operator.
impl Octal for PipelineStatisticsTypes
impl Octal for PipelineStatisticsTypes
impl Ord for PipelineStatisticsTypes
impl Ord for PipelineStatisticsTypes
pub fn cmp(&self, other: &PipelineStatisticsTypes) -> Ordering
pub fn cmp(&self, other: &PipelineStatisticsTypes) -> Ordering
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
pub fn eq(&self, other: &PipelineStatisticsTypes) -> bool
pub fn eq(&self, other: &PipelineStatisticsTypes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &PipelineStatisticsTypes) -> bool
pub fn ne(&self, other: &PipelineStatisticsTypes) -> bool
This method tests for !=
.
pub fn partial_cmp(&self, other: &PipelineStatisticsTypes) -> Option<Ordering>
pub fn partial_cmp(&self, other: &PipelineStatisticsTypes) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
pub fn sub(self, other: PipelineStatisticsTypes) -> PipelineStatisticsTypes
pub fn sub(self, other: PipelineStatisticsTypes) -> PipelineStatisticsTypes
Returns the set difference of the two sets of flags.
type Output = PipelineStatisticsTypes
type Output = PipelineStatisticsTypes
The resulting type after applying the -
operator.
pub fn sub_assign(&mut self, other: PipelineStatisticsTypes)
pub fn sub_assign(&mut self, other: PipelineStatisticsTypes)
Disables all flags enabled in the set.
impl UpperHex for PipelineStatisticsTypes
impl UpperHex for PipelineStatisticsTypes
impl Copy for PipelineStatisticsTypes
impl Eq for PipelineStatisticsTypes
impl StructuralEq for PipelineStatisticsTypes
Auto Trait Implementations
impl RefUnwindSafe for PipelineStatisticsTypes
impl Send for PipelineStatisticsTypes
impl Sync for PipelineStatisticsTypes
impl Unpin for PipelineStatisticsTypes
impl UnwindSafe for PipelineStatisticsTypes
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V