mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 22:28:10 +08:00
Convert the raster std and adjustments families to element kernels and keep the unit primary's slot
This commit is contained in:
@@ -7,3 +7,12 @@ impl Ctx for () {}
|
||||
pub trait ArcCtx: Send + Sync {}
|
||||
#[cfg(feature = "std")]
|
||||
impl<T: ArcCtx> Ctx for std::sync::Arc<T> {}
|
||||
|
||||
// The cache-hash bound record kernels place on their element generics; the
|
||||
// shader build compiles the same signatures without the hashing machinery.
|
||||
#[cfg(feature = "std")]
|
||||
pub use graphene_hash::CacheHash;
|
||||
#[cfg(not(feature = "std"))]
|
||||
pub trait CacheHash {}
|
||||
#[cfg(not(feature = "std"))]
|
||||
impl<T> CacheHash for T {}
|
||||
|
||||
Reference in New Issue
Block a user