mirror of
https://github.com/bevyengine/bevy
synced 2025-01-08 03:08:55 +00:00
31 lines
661 B
Rust
31 lines
661 B
Rust
use bevy_utils::Uuid;
|
|
|
|
#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug)]
|
|
pub struct TextureId(Uuid);
|
|
|
|
impl TextureId {
|
|
#[allow(clippy::new_without_default)]
|
|
pub fn new() -> Self {
|
|
TextureId(Uuid::new_v4())
|
|
}
|
|
}
|
|
|
|
#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug)]
|
|
pub struct TextureViewId(Uuid);
|
|
|
|
impl TextureViewId {
|
|
#[allow(clippy::new_without_default)]
|
|
pub fn new() -> Self {
|
|
TextureViewId(Uuid::new_v4())
|
|
}
|
|
}
|
|
|
|
#[derive(Copy, Clone, Hash, Eq, PartialEq, Debug)]
|
|
pub struct SamplerId(Uuid);
|
|
|
|
impl SamplerId {
|
|
#[allow(clippy::new_without_default)]
|
|
pub fn new() -> Self {
|
|
SamplerId(Uuid::new_v4())
|
|
}
|
|
}
|