Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PlanarStoragePlugin::<PlanarStorageMyStruct>::default(), #8

Open
github-actions bot opened this issue Feb 19, 2024 · 0 comments
Open

PlanarStoragePlugin::<PlanarStorageMyStruct>::default(), #8

github-actions bot opened this issue Feb 19, 2024 · 0 comments
Assignees
Labels

Comments

@github-actions
Copy link

// TODO: PlanarStoragePlugin::<PlanarStorageMyStruct>::default(),

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();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant