mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
* node-macro: modernize `node` macro * node-macro: add `CrateIdent` struct containing resolved crate paths * shaders: add trait `BufferStruct` and derive macro * shaders: `gamma_correction` and `channel_mixer` gpu nodes * shaders: `selective_color` gpu node * shaders: `brightness_contrast_classic` gpu node * shaders: append GPU to display name * node-macro: fixup doc links * shaders: consistently append " GPU" to all shader node names
21 lines
295 B
Rust
21 lines
295 B
Rust
#![cfg_attr(not(feature = "std"), no_std)]
|
|
|
|
pub mod blending;
|
|
pub mod choice_type;
|
|
pub mod color;
|
|
pub mod context;
|
|
pub mod registry;
|
|
pub mod shaders;
|
|
|
|
pub use context::Ctx;
|
|
pub use glam;
|
|
|
|
pub trait AsU32 {
|
|
fn as_u32(&self) -> u32;
|
|
}
|
|
impl AsU32 for u32 {
|
|
fn as_u32(&self) -> u32 {
|
|
*self
|
|
}
|
|
}
|