skia2/resources/sksl/shared/ArrayConstructors.sksl

8 lines
227 B
Plaintext
Raw Normal View History

float test1[4] = float[4](1, 2, 3, 4);
float2 test2[2] = float2[2](float2(1, 2), float2(3, 4));
float4x4 test3[1] = float4x4[1](float4x4(16));
void main() {
sk_FragColor.r = half(test1[0] + test2[0].x + test3[0][0][0]);
}