@motion-script/core / parseShaderChildren
Function: parseShaderChildren()
parseShaderChildren(
source):ShaderChildDecl[]
Defined in: attributes/shape/sksl-uniforms.ts:353
Recover a shader's child declarations, in the order Skia indexes them.
Necessary because RuntimeEffect exposes no child reflection at all — there is
no getChildCount/getChildName counterpart to the uniform API. All three
child kinds are counted, not just shader: Skia keeps children as one indexed
list, so a colorFilter declared in the middle shifts every sampler after it.
Parameters
source
string