Skip to content

Commit 8edc4eb

Browse files
committed
gcore-shaders: move AsU32
1 parent fc190c3 commit 8edc4eb

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

node-graph/gcore-shaders/src/lib.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,12 @@ pub use glam;
22

33
pub mod blending;
44
pub mod color;
5+
6+
pub trait AsU32 {
7+
fn as_u32(&self) -> u32;
8+
}
9+
impl AsU32 for u32 {
10+
fn as_u32(&self) -> u32 {
11+
*self
12+
}
13+
}

node-graph/gcore/src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub use color::Color;
3535
pub use context::*;
3636
pub use ctor;
3737
pub use dyn_any::{StaticTypeSized, WasmNotSend, WasmNotSync};
38+
pub use graphene_core_shaders::AsU32;
3839
pub use graphene_core_shaders::blending;
3940
pub use graphene_core_shaders::color;
4041
pub use graphic_element::{Artboard, ArtboardGroupTable, GraphicElement, GraphicGroupTable};
@@ -165,12 +166,3 @@ pub trait NodeInputDecleration {
165166
fn identifier() -> ProtoNodeIdentifier;
166167
type Result;
167168
}
168-
169-
pub trait AsU32 {
170-
fn as_u32(&self) -> u32;
171-
}
172-
impl AsU32 for u32 {
173-
fn as_u32(&self) -> u32 {
174-
*self
175-
}
176-
}

0 commit comments

Comments
 (0)