skia2/tests/sksl/intrinsics/Pack.glsl

12 lines
299 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform vec2 a;
uniform vec4 b;
void main() {
sk_FragColor.x = float(packHalf2x16(a));
sk_FragColor.x = float(packUnorm2x16(a));
sk_FragColor.x = float(packSnorm2x16(a));
sk_FragColor.x = float(packUnorm4x8(b));
sk_FragColor.x = float(packSnorm4x8(b));
}