mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-20 10:25:28 +00:00
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:
committed by
Tint LUCI CQ
parent
2e6269acb0
commit
10c554ecf4
@@ -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