MotionScript

@motion-script/core


@motion-script/core / SkSLUniformRecord

Type Alias: SkSLUniformRecord

SkSLUniformRecord = Record<string, SkSLUniformValue>

Defined in: attributes/shape/sksl-uniforms.ts:35

Uniform values keyed by the name they are declared under in the shader.

The form the shader fill takes, because it is marshalled by reflecting the compiled program (see writeUniforms) rather than by position — so declaration order is irrelevant and a name the shader doesn't declare is a diagnosable mistake instead of a silently shifted buffer.