mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-04 19:25:47 +00:00
Demonstrates that this is not an issue. Fixed: tint:1563 Change-Id: I5a33e6805cf0a5c52a6306f6d7e5949cee5636a5 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/105641 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Ben Clayton <bclayton@google.com> Auto-Submit: Ben Clayton <bclayton@google.com> Commit-Queue: Corentin Wallez <cwallez@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com>
15 lines
281 B
GLSL
15 lines
281 B
GLSL
#version 310 es
|
|
|
|
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
|
void unused_entry_point() {
|
|
return;
|
|
}
|
|
float foo() {
|
|
int oob = 99;
|
|
float b = vec4(0.0f)[min(uint(oob), 3u)];
|
|
vec4 v = vec4(0.0f, 0.0f, 0.0f, 0.0f);
|
|
v[min(uint(oob), 3u)] = b;
|
|
return b;
|
|
}
|
|
|