bevy_render 0.3.0

Provides rendering functionality for Bevy Engine
Documentation
use uuid::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 SamplerId(Uuid);

impl SamplerId {
    #[allow(clippy::new_without_default)]
    pub fn new() -> Self {
        SamplerId(Uuid::new_v4())
    }
}