pub struct VfxGraph {
pub name: String,
pub nodes: Vec<VfxNode>,
pub connections: Vec<VfxConnection>,
pub contexts: Vec<VfxContext>,
pub exposed_parameters: Vec<ExposedParameter>,
pub next_conn_id: u64,
pub dirty: bool,
pub last_compile_error: Option<String>,
pub compile_warnings: Vec<String>,
pub particle_capacity: u32,
pub simulation_space: SimulationSpace,
pub culling_mode: CullingMode,
}Fields§
§name: String§nodes: Vec<VfxNode>§connections: Vec<VfxConnection>§contexts: Vec<VfxContext>§exposed_parameters: Vec<ExposedParameter>§next_conn_id: u64§dirty: bool§last_compile_error: Option<String>§compile_warnings: Vec<String>§particle_capacity: u32§simulation_space: SimulationSpace§culling_mode: CullingModeImplementations§
Source§impl VfxGraph
impl VfxGraph
pub fn new(name: &str) -> Self
pub fn add_node(&mut self, node: VfxNode) -> u64
pub fn remove_node(&mut self, id: u64)
pub fn find_node(&self, id: u64) -> Option<&VfxNode>
pub fn find_node_mut(&mut self, id: u64) -> Option<&mut VfxNode>
pub fn connect( &mut self, from_node: u64, from_port: usize, to_node: u64, to_port: usize, ) -> u64
pub fn disconnect(&mut self, conn_id: u64)
pub fn validate(&mut self) -> Vec<String>
pub fn topological_order(&self) -> Vec<u64>
pub fn generate_hlsl(&self) -> String
pub fn estimate_memory_bytes(&self) -> usize
pub fn build_fire_effect() -> Self
pub fn build_smoke_effect() -> Self
pub fn build_sparks_effect() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VfxGraph
impl RefUnwindSafe for VfxGraph
impl Send for VfxGraph
impl Sync for VfxGraph
impl Unpin for VfxGraph
impl UnsafeUnpin for VfxGraph
impl UnwindSafe for VfxGraph
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.