MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / clear

Method clear

native/shared/src/renderer/transient.rs:164–169  ·  view source on GitHub ↗

Nuke everything. For tests, and for catastrophic format changes.

(&mut self)

Source from the content-addressed store, hash-verified

162
163 /// Nuke everything. For tests, and for catastrophic format changes.
164 pub fn clear(&mut self) {
165 if !self.slots.is_empty() {
166 self.slots.clear();
167 self.rebuild_epoch += 1;
168 }
169 }
170
171 /// Acquire a transient matching `desc`. Returns either a freed
172 /// slot from the reuse pool or allocates a new one via `device`.

Callers 15

setup_world_hdrFunction · 0.45
resetTouchClaimsFunction · 0.45
update_geometry_f64Function · 0.45
clear_lightsFunction · 0.45
set_bundle_pathFunction · 0.45
beginFunction · 0.45
frame_endMethod · 0.45
frame_end_cpuMethod · 0.45
scratch_resetMethod · 0.45
compound_beginMethod · 0.45
compound_endMethod · 0.45
stepMethod · 0.45

Calls

no outgoing calls

Tested by 1

clear_resets_everythingFunction · 0.36