-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.rs
39 lines (29 loc) · 773 Bytes
/
app.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
use bevy::prelude::*;
use bevy_interleave::prelude::*;
#[derive(
Debug,
Planar,
ReflectInterleaved,
StorageBindings,
TextureBindings,
)]
pub struct MyStruct {
#[texture_format(TextureFormat::R32Sint)]
pub field: i32,
#[texture_format(TextureFormat::R32Uint)]
pub field2: u32,
#[texture_format(TextureFormat::R8Unorm)]
pub bool_field: bool,
#[texture_format(TextureFormat::Rgba32Uint)]
pub array: [u32; 4],
}
fn main() {
let mut app = App::new();
app.add_plugins((
DefaultPlugins,
PlanarPlugin::<PlanarMyStruct>::default(),
PlanarTexturePlugin::<PlanarTextureMyStruct>::default(),
// TODO: PlanarStoragePlugin::<PlanarStorageMyStruct>::default(),
));
app.run();
}