mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 10:49:14 +00:00
GLSL: fix countOneBits().
This change essentially relands 10c554ecf4,
aka https://dawn-review.googlesource.com/c/tint/+/82140.
(Somehow, I managed to revert most of that in the subsequent CL for
reverseBits. I suspect a bad upstream and/or rebase.)
Bug: tint:1430
Change-Id: Iba2688294dcd7d3008ee9da78957a7a464ca1c0f
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/82220
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
This commit is contained in:
committed by
Tint LUCI CQ
parent
bee5fa6881
commit
4acf466ff9
@@ -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.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user