Struct GpuInstanceMorphWeights
#[repr(C)]pub struct GpuInstanceMorphWeights {
pub weights: [f32; 8],
pub target_count: u32,
pub vertex_stride: u32,
pub eont_damage_permill: u32,
pub eont_hydration_permill: u32,
}Expand description
48-byte per-instance morph weight uniform/storage record uploaded to the GPU.
Fields§
§weights: [f32; 8]Normalized morph target weights (0..8).
target_count: u32Number of active morph targets (<= 8).
vertex_stride: u32Vertex count stride between consecutive morph target slabs in the delta buffer.
eont_damage_permill: u32Structural/tissue damage in permill (0..=1000).
eont_hydration_permill: u32Hydration / turgor pressure in permill (0..=1000).
Trait Implementations§
§impl Clone for GpuInstanceMorphWeights
impl Clone for GpuInstanceMorphWeights
§fn clone(&self) -> GpuInstanceMorphWeights
fn clone(&self) -> GpuInstanceMorphWeights
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GpuInstanceMorphWeights
§impl Debug for GpuInstanceMorphWeights
impl Debug for GpuInstanceMorphWeights
§impl Default for GpuInstanceMorphWeights
impl Default for GpuInstanceMorphWeights
§fn default() -> GpuInstanceMorphWeights
fn default() -> GpuInstanceMorphWeights
Returns the “default value” for a type. Read more
§impl PartialEq for GpuInstanceMorphWeights
impl PartialEq for GpuInstanceMorphWeights
impl Pod for GpuInstanceMorphWeights
impl StructuralPartialEq for GpuInstanceMorphWeights
Auto Trait Implementations§
impl Freeze for GpuInstanceMorphWeights
impl RefUnwindSafe for GpuInstanceMorphWeights
impl Send for GpuInstanceMorphWeights
impl Sync for GpuInstanceMorphWeights
impl Unpin for GpuInstanceMorphWeights
impl UnsafeUnpin for GpuInstanceMorphWeights
impl UnwindSafe for GpuInstanceMorphWeights
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
impl<T> AnyBitPattern for Twhere
T: Pod,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
impl<T> Interleave for Twhere
T: Pod,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> NoUninit for Twhere
T: Pod,
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.