m98: Update effects/
@@ -52,6 +52,10 @@ impl Uniform {
self.flags().contains(uniform::Flags::ARRAY)
}
+ pub fn is_color(&self) -> bool {
+ self.flags().contains(uniform::Flags::COLOR)
+ }
+
pub fn size_in_bytes(&self) -> usize {
unsafe { self.native().sizeInBytes() }
}
@@ -296,6 +300,8 @@ impl RuntimeEffect {
})
}
+ // TODO: wrap MakeTraced
+
pub fn source(&self) -> &str {
let mut len = 0;
let ptr = unsafe { sb::C_SkRuntimeEffect_source(self.native(), &mut len) };
