#[repr(C)]pub struct ProceduralSynthesisGpu {Show 16 fields
pub magic_u32: u32,
pub version_and_flags: u32,
pub seed_lo: u32,
pub seed_hi: u32,
pub voronoi_frequency: f32,
pub voronoi_jitter: f32,
pub fillet_blend_radius: f32,
pub fillet_threshold: f32,
pub allometry_exponent_k: f32,
pub allometry_base_b: f32,
pub spiral_growth_rate_k: f32,
pub spiral_initial_radius_a: f32,
pub motor_frequency_hz: f32,
pub motor_damping_ratio: f32,
pub critical_stress_threshold: f32,
pub reserved_f32: f32,
}Expand description
64-byte GPU storage representation of .10d MAGIC_PROC ProceduralSynthesisHeader.
Uses 32-bit words for header fields so WGSL shaders can read it directly without u64/u16
extension requirements while remaining byte-for-byte compatible with ProceduralSynthesisHeader.
Fields§
§magic_u32: u32§version_and_flags: u32Low 16 bits = version, high 16 bits = flags (FLAG_CELLULAR_VORONOI, FLAG_PGA_MOTOR_DYNAMICS, etc.).
seed_lo: u32§seed_hi: u32§voronoi_frequency: f32§voronoi_jitter: f32§fillet_blend_radius: f32§fillet_threshold: f32§allometry_exponent_k: f32§allometry_base_b: f32§spiral_growth_rate_k: f32§spiral_initial_radius_a: f32§motor_frequency_hz: f32§motor_damping_ratio: f32§critical_stress_threshold: f32§reserved_f32: f32Implementations§
Source§impl ProceduralSynthesisGpu
impl ProceduralSynthesisGpu
Sourcepub const fn from_header(header: &ProceduralSynthesisHeader) -> Self
pub const fn from_header(header: &ProceduralSynthesisHeader) -> Self
Converts a .10d ProceduralSynthesisHeader into its 64-byte GPU storage representation.
Sourcepub const fn to_header(self) -> ProceduralSynthesisHeader
pub const fn to_header(self) -> ProceduralSynthesisHeader
Reconstructs the CPU ProceduralSynthesisHeader.
Trait Implementations§
Source§impl Clone for ProceduralSynthesisGpu
impl Clone for ProceduralSynthesisGpu
impl Copy for ProceduralSynthesisGpu
Source§impl Debug for ProceduralSynthesisGpu
impl Debug for ProceduralSynthesisGpu
Source§impl Default for ProceduralSynthesisGpu
impl Default for ProceduralSynthesisGpu
Source§impl PartialEq for ProceduralSynthesisGpu
impl PartialEq for ProceduralSynthesisGpu
impl Pod for ProceduralSynthesisGpu
impl StructuralPartialEq for ProceduralSynthesisGpu
Auto Trait Implementations§
impl Freeze for ProceduralSynthesisGpu
impl RefUnwindSafe for ProceduralSynthesisGpu
impl Send for ProceduralSynthesisGpu
impl Sync for ProceduralSynthesisGpu
impl Unpin for ProceduralSynthesisGpu
impl UnsafeUnpin for ProceduralSynthesisGpu
impl UnwindSafe for ProceduralSynthesisGpu
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.