You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
- when i made bevy_shader, i inlined the define_atomic_id macro because
i wasnt sure if one usage was enough justification for kicking it into
utils
- ~~bevy_material needs this in several places too, so let's kick it out
in preparation. 3 usages outside bevy_render is enough justification~~
its not actually needed for bevy_material
## Solution
- move file
## Testing
- examples, clippy etc.
reason = "Implementing the `Default` trait on atomic IDs would imply that two `<AtomicIdType>::default()` equal each other. By only implementing `new()`, we indicate that each atomic ID created will be unique."
15
-
)]
16
-
pubfnnew() -> Self{
17
-
use core::sync::atomic::{AtomicU32,Ordering};
18
-
staticCOUNTER:AtomicU32 = AtomicU32::new(1);
19
-
let counter = COUNTER.fetch_add(1,Ordering::Relaxed);
0 commit comments