#[repr(C)]pub struct ExternalTriggerState {
pub last_trigger_time: f32,
pub trigger_type: f32,
pub trigger_intensity: f32,
pub custom_param: f32,
}Expand description
Per-node external trigger state
Bound to @group(4) @binding(0) for nodes with external trigger actions. Similar to BeatSync, but for external events (OSC, SNS, HTTP, etc.)
§Memory Layout (std140)
- 4 floats = 16 bytes total
Fields§
§last_trigger_time: f32Time when this node was last triggered (seconds since engine start)
trigger_type: f32Trigger type/source identifier (e.g., 0=OSC, 1=SNS mention, 2=HTTP webhook)
trigger_intensity: f32Intensity/value at trigger time (0.0-1.0, can be > 1.0 for boosted events)
custom_param: f32Custom parameter for event-specific data
Implementations§
Trait Implementations§
Source§impl Clone for ExternalTriggerState
impl Clone for ExternalTriggerState
Source§fn clone(&self) -> ExternalTriggerState
fn clone(&self) -> ExternalTriggerState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalTriggerState
impl Debug for ExternalTriggerState
Source§impl Default for ExternalTriggerState
impl Default for ExternalTriggerState
Source§fn default() -> ExternalTriggerState
fn default() -> ExternalTriggerState
Returns the “default value” for a type. Read more
impl Copy for ExternalTriggerState
impl Pod for ExternalTriggerState
Auto Trait Implementations§
impl Freeze for ExternalTriggerState
impl RefUnwindSafe for ExternalTriggerState
impl Send for ExternalTriggerState
impl Sync for ExternalTriggerState
impl Unpin for ExternalTriggerState
impl UnwindSafe for ExternalTriggerState
Blanket Implementations§
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§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.Source§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.