dawn-cmake/test/tint/bug/tint/1563.wgsl.expected.glsl
Ben Clayton 51cc480b69 test/tint: add test case for tint:1563
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>
2022-10-13 12:55:52 +00:00

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;
}