skia2/resources/sksl/fp/GrUniformArrays.fp

10 lines
280 B
Plaintext
Raw Normal View History

uniform half scalarArray[4];
uniform half2 pointArray[2];
half4 main() {
return half4(scalarArray[0] * pointArray[0].x +
scalarArray[1] * pointArray[0].y +
scalarArray[2] * pointArray[1].x +
scalarArray[3] * pointArray[1].y);
}