pub enum VramHandle {
Empty,
Rect(VramRect),
Window(TextureWindowPlacement),
RoomPage(u16),
Clut {
x: u16,
y: u16,
entries: u16,
},
}Expand description
A freeable handle to a VRAM reservation handed out by VramAllocator.
Returned alongside the hardware TexturePage / Clut so a caller can both
use the reservation immediately and release it later via
VramAllocator::free. Copy so it can sit in fixed slot tables.
Variants§
Empty
No reservation (allocation failed, or a default slot).
Rect(VramRect)
A coarse-grid rectangle: texture pages, model strips, the framebuffer.
Window(TextureWindowPlacement)
A room-material window inside the composed TextureWindowAtlas.
RoomPage(u16)
A whole reserved room-material page (its page index).
Clut
A CLUT-row sub-allocation: entries palette slots at (x, y).
Trait Implementations§
Source§impl Clone for VramHandle
impl Clone for VramHandle
Source§fn clone(&self) -> VramHandle
fn clone(&self) -> VramHandle
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VramHandle
impl Debug for VramHandle
Source§impl PartialEq for VramHandle
impl PartialEq for VramHandle
impl Copy for VramHandle
impl Eq for VramHandle
impl StructuralPartialEq for VramHandle
Auto Trait Implementations§
impl Freeze for VramHandle
impl RefUnwindSafe for VramHandle
impl Send for VramHandle
impl Sync for VramHandle
impl Unpin for VramHandle
impl UnsafeUnpin for VramHandle
impl UnwindSafe for VramHandle
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)