#[repr(u8)]pub enum ResourceKind {
Mesh = 0,
Texture = 1,
Material = 2,
Font = 3,
AudioClip = 4,
CubemapTexture = 5,
EnvironmentMap = 6,
ColorLut = 7,
SkinnedMesh = 8,
}Expand description
The kinds of resource the runtime keeps in per-kind tables, one dense handle
space per kind. The #[repr(u8)] discriminant is the resource stream’s
resource_kind tag (like ComponentTag for components); cook writes it and
the runtime selects the table by it. Order is the assignment order cook uses.
Variants§
Mesh = 0
Static mesh geometry.
Texture = 1
A 2D texture.
Material = 2
A baked material.
Font = 3
A font atlas.
AudioClip = 4
A decoded audio clip.
CubemapTexture = 5
A cubemap texture.
EnvironmentMap = 6
A prefiltered environment map.
ColorLut = 7
A colour lookup table.
SkinnedMesh = 8
Skinned mesh geometry.
Trait Implementations§
Source§impl Clone for ResourceKind
impl Clone for ResourceKind
Source§fn clone(&self) -> ResourceKind
fn clone(&self) -> ResourceKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ResourceKind
Source§impl Debug for ResourceKind
impl Debug for ResourceKind
impl Eq for ResourceKind
Source§impl Hash for ResourceKind
impl Hash for ResourceKind
Source§impl PartialEq for ResourceKind
impl PartialEq for ResourceKind
impl StructuralPartialEq for ResourceKind
Auto Trait Implementations§
impl Freeze for ResourceKind
impl RefUnwindSafe for ResourceKind
impl Send for ResourceKind
impl Sync for ResourceKind
impl Unpin for ResourceKind
impl UnsafeUnpin for ResourceKind
impl UnwindSafe for ResourceKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.