How to use an array of integers as input to SKSL shader. #2452
Unanswered
martinrhan
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a 8x8 array of intergers. The shader should perform like this: divide the canvas into grid of 8x8, for each fragment, calculate which block does it belongs to, then assign the fragment color by a function of the integer.
I am struggling in how to make this, even after reading many webpages.
SKRuntimeEffectUniform only support FloatArray not IntArray. SKRuntimeEffectChildren only support a shader, not an array or buffer of int.
Beta Was this translation helpful? Give feedback.
All reactions