18 lines
413 B
Rust
18 lines
413 B
Rust
use std::ops::Deref;
|
|
|
|
#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)]
|
|
pub struct MeshHandle(pub u32);
|
|
|
|
#[derive(Debug, Default, Copy, Clone, Hash, PartialEq, Eq)]
|
|
pub struct MaterialHandle(pub u32);
|
|
|
|
#[derive(Default, Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
|
pub struct ShaderHandle(pub u32);
|
|
|
|
impl Deref for ShaderHandle {
|
|
type Target = u32;
|
|
fn deref(&self) -> &Self::Target {
|
|
&self.0
|
|
}
|
|
}
|