Skip to main content

ss_effect_slot_create

Function ss_effect_slot_create 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn ss_effect_slot_create( resource: *const c_void, effect_name_hash: u32, seed: u32, ) -> *mut c_void
Expand description

Create a new EffectSlot bound to resource. Returns null on failure (resource not loaded, effect_name_hash not found, malformed effect data).

The slot holds its own reference to resource, so ss_resource_destroy may be called while the slot is still alive, exactly as it may while a Context is still bound.