()
| 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 |
nothing calls this directly
no test coverage detected