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

Function clear_resets_everything

native/shared/src/renderer/transient.rs:416–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

414
415 #[test]
416 fn clear_resets_everything() {
417 let Some((device, _queue)) = try_create_device() else { return; };
418 let mut pool = TransientPool::new();
419 pool.begin_frame(1024, 768);
420 let _ = pool.acquire(&device, hdr_desc());
421 let _ = pool.acquire(&device, r8_half());
422 assert_eq!(pool.slot_count(), 2);
423
424 pool.clear();
425 assert_eq!(pool.slot_count(), 0);
426 assert_eq!(pool.rebuild_epoch, 1);
427 }
428
429 /// EN-006 — depth snapshot path. Exercises the same
430 /// `copy_texture_to_texture` from a live depth-stencil attachment

Callers

nothing calls this directly

Calls 6

hdr_descFunction · 0.85
r8_halfFunction · 0.85
try_create_deviceFunction · 0.70
begin_frameMethod · 0.45
acquireMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected