added underdeveloped but working image support (no freeing or samplers)
This commit is contained in:
@@ -7,12 +7,12 @@
|
||||
pub struct Id(u64);
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct IDTracker {
|
||||
pub struct IdTracker {
|
||||
free: Vec<Id>,
|
||||
cur: u64,
|
||||
}
|
||||
|
||||
impl IDTracker {
|
||||
impl IdTracker {
|
||||
#[allow(clippy::should_implement_trait)]
|
||||
pub fn next(&mut self) -> Id {
|
||||
if let Some(id) = self.free.pop() {
|
||||
|
||||
Reference in New Issue
Block a user