mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 04:11:25 +00:00
There's no good reason for this to be public. Move it into the writers, and expose a 'disable_robustness' option to turn it off. This can be expanded to hold more fine-grain control in the future. Change-Id: I6ea6e54a27b2ae0fbcba5fdf45539063045cc15a Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122203 Commit-Queue: Ben Clayton <bclayton@google.com> Kokoro: Ben Clayton <bclayton@google.com> Reviewed-by: Dan Sinclair <dsinclair@chromium.org> Auto-Submit: Ben Clayton <bclayton@google.com> Reviewed-by: Austin Eng <enga@chromium.org>
36 lines
641 B
GLSL
36 lines
641 B
GLSL
#version 310 es
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
int tint_workgroupUniformLoad(inout int p) {
|
|
barrier();
|
|
int result = p;
|
|
barrier();
|
|
return result;
|
|
}
|
|
|
|
shared int a;
|
|
shared int b;
|
|
void foo() {
|
|
{
|
|
int i = 0;
|
|
while (true) {
|
|
int tint_symbol = i;
|
|
int tint_symbol_1 = tint_workgroupUniformLoad(a);
|
|
if (!((tint_symbol < tint_symbol_1))) {
|
|
break;
|
|
}
|
|
{
|
|
}
|
|
{
|
|
int tint_symbol_2 = i;
|
|
int tint_symbol_3 = tint_workgroupUniformLoad(b);
|
|
i = (tint_symbol_2 + tint_symbol_3);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|