Struct EmfFieldCell
#[repr(C)]pub struct EmfFieldCell {Show 16 fields
pub amplitude: f32,
pub phase: f32,
pub frequency: f32,
pub scale: f32,
pub attention_depth: f32,
pub epistemic_weight: f32,
pub topological_spin: f32,
pub temporal_decay: f32,
pub entropy_bias: f32,
pub spatial_phase: f32,
pub recurrence_frequency: f32,
pub density_threshold: f32,
pub manifold_curvature: f32,
pub stokes_q: f32,
pub stokes_u: f32,
pub stokes_v: f32,
}Expand description
Per-cell field data uploaded to the GPU storage buffer.
Layout matches the WGSL EmfFieldCell struct (64 bytes = 3 field f32 + 10 manifold f32 + 3 Stokes f32).
Fields§
§amplitude: f32§phase: f32§frequency: f32§scale: f32§attention_depth: f32§epistemic_weight: f32§topological_spin: f32§temporal_decay: f32§entropy_bias: f32§spatial_phase: f32§recurrence_frequency: f32§density_threshold: f32§manifold_curvature: f32§stokes_q: f32§stokes_u: f32§stokes_v: f32Implementations§
§impl EmfFieldCell
impl EmfFieldCell
pub const fn from_v1_13f32(v1: [f32; 13]) -> EmfFieldCell
pub const fn from_v1_13f32(v1: [f32; 13]) -> EmfFieldCell
Migrate a legacy 52-byte (13 × f32) v1 cell to the 64-byte (16 × f32) v2 layout,
initializing the 3 Stokes polarization parameters (stokes_q, stokes_u, stokes_v) to 0.0.
pub fn degree_of_polarization(&self) -> f32
pub fn degree_of_polarization(&self) -> f32
Computes degree of polarization $\Pi \in [0, 1]$ from Stokes $(Q, U, V)$ and amplitude.
Trait Implementations§
§impl Clone for EmfFieldCell
impl Clone for EmfFieldCell
§fn clone(&self) -> EmfFieldCell
fn clone(&self) -> EmfFieldCell
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 EmfFieldCell
§impl Debug for EmfFieldCell
impl Debug for EmfFieldCell
§impl Default for EmfFieldCell
impl Default for EmfFieldCell
§fn default() -> EmfFieldCell
fn default() -> EmfFieldCell
Returns the “default value” for a type. Read more
§impl PartialEq for EmfFieldCell
impl PartialEq for EmfFieldCell
impl Pod for EmfFieldCell
impl StructuralPartialEq for EmfFieldCell
Auto Trait Implementations§
impl Freeze for EmfFieldCell
impl RefUnwindSafe for EmfFieldCell
impl Send for EmfFieldCell
impl Sync for EmfFieldCell
impl Unpin for EmfFieldCell
impl UnsafeUnpin for EmfFieldCell
impl UnwindSafe for EmfFieldCell
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.