skia2/tests/sksl/intrinsics/Unpack.glsl

11 lines
257 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform uint a;
void main() {
sk_FragColor.xy = unpackHalf2x16(a);
sk_FragColor.xy = unpackUnorm2x16(a);
sk_FragColor.xy = unpackSnorm2x16(a);
sk_FragColor = unpackUnorm4x8(a);
sk_FragColor = unpackSnorm4x8(a);
}