Skip to content

Commit c8526db

Browse files
committed
move macros into helpers
1 parent c8c69dc commit c8526db

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/shaders/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
// ** Header
1313
#![deny(warnings)] #![no_std]
14-
// Gravylib imports. In your own crate, import `gravylib::*` instead.
15-
use gravylib_helpers::*; use gravylib_macros::*;
14+
use gravylib_helpers::*;
1615

1716
// ** Shaders
1817
// Here we declare the shader modules that will be published.

gravylib_helpers/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ crate-type = ["lib", "dylib"]
1212

1313
[dependencies]
1414
spirv-std = { workspace = true }
15-
bytemuck = { version = "1.6.3", features = ["derive"] }
15+
bytemuck = { version = "1.6.3", features = ["derive"] }
16+
gravylib_macros = { path = "../gravylib_macros" }

gravylib_helpers/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ pub use glam::*;
55
#[cfg(target_arch = "spirv")]
66
pub use spirv_std::num_traits::Float;
77

8+
pub use gravylib_macros as macros;
9+
pub use macros::*;
10+
811
use bytemuck::{Pod, Zeroable};
912
#[derive(Copy, Clone, Pod, Zeroable)]
1013
#[repr(C)]

0 commit comments

Comments
 (0)