skia2/tests/sksl/intrinsics/BitCount.glsl

9 lines
153 B
Plaintext
Raw Normal View History

out vec4 sk_FragColor;
uniform int a;
uniform uint b;
void main() {
sk_FragColor.x = float(bitCount(a));
sk_FragColor.y = float(bitCount(b));
}