Skip to content

Commit

Permalink
Expose ShaderId and Id internals
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper-Bekkers committed Sep 11, 2023
1 parent bcbbf51 commit d24aea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ use wgpu::{
pub type Error = Box<dyn std::error::Error>;

#[derive(Clone, Copy)]
pub struct ShaderId(usize);
pub struct ShaderId(pub usize);

#[derive(Clone, Copy, PartialEq, Eq, Hash)]
pub struct Id(NonZeroU64);
pub struct Id(pub NonZeroU64);

static ID_COUNTER: AtomicU64 = AtomicU64::new(0);

Expand Down

0 comments on commit d24aea1

Please sign in to comment.