pub struct Category(/* private fields */);Expand description
What kind of data a resource is. Each category has its own budget
(crate::CategoryConfig) and maps onto one page pool.
The five constants are the categories the streaming design names; a game
may use any other value below Category::LIMIT for its own kinds.
Implementations§
Source§impl Category
impl Category
Sourcepub const LIMIT: u8 = 64
pub const LIMIT: u8 = 64
Exclusive upper bound on category numbers (a key packs the category in 6 bits).
Sourcepub const WORLD_REGION: Category
pub const WORLD_REGION: Category
Visible world data of one region (a BSP subtree and its payload).
Sourcepub const COLLISION_REGION: Category
pub const COLLISION_REGION: Category
Collision data of one region (hull subtrees).
Sourcepub const TEXTURE_PAGE: Category
pub const TEXTURE_PAGE: Category
One VRAM texture page or palette block.
Sourcepub const ARCHETYPE_PACK: Category
pub const ARCHETYPE_PACK: Category
Model, animation clips and atlas of one actor archetype.
Sourcepub const AUDIO_BANK: Category
pub const AUDIO_BANK: Category
One SPU sound bank.
Sourcepub const fn from_number(number: u8) -> Option<Category>
pub const fn from_number(number: u8) -> Option<Category>
A game-defined category. None when number is not below
Category::LIMIT.
Trait Implementations§
Source§impl Ord for Category
impl Ord for Category
Source§impl PartialOrd for Category
impl PartialOrd for Category
impl Copy for Category
impl Eq for Category
impl StructuralPartialEq for Category
Auto Trait Implementations§
impl Freeze for Category
impl RefUnwindSafe for Category
impl Send for Category
impl Sync for Category
impl Unpin for Category
impl UnsafeUnpin for Category
impl UnwindSafe for Category
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)