GLSL: implement countOneBits().

Bug: tint:1430
Change-Id: I1aa886d1f68e50f0ce6fd5b55d87722742ca5f69
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/82140
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
Stephen White
2022-02-28 17:41:47 +00:00
committed by Tint LUCI CQ
parent 2e6269acb0
commit 10c554ecf4
21 changed files with 61 additions and 340 deletions

View File

@@ -1,5 +1,3 @@
SKIP: FAILED
#version 310 es
void main_1() {
@@ -7,7 +5,7 @@ void main_1() {
int i1 = 30;
uvec2 v2u1 = uvec2(10u, 20u);
ivec2 v2i1 = ivec2(30, 40);
int x_1 = int(countbits(u1));
int x_1 = int(uint(bitCount(u1)));
return;
}
@@ -20,10 +18,3 @@ void main() {
tint_symbol();
return;
}
Error parsing GLSL shader:
ERROR: 0:8: 'countbits' : no matching overloaded function found
ERROR: 0:8: '' : compilation terminated
ERROR: 2 compilation errors. No code generated.