dawn-cmake/test/tint/bug/tint/980.wgsl.expected.glsl

28 lines
475 B
GLSL

#version 310 es
vec3 Bad(uint index, vec3 rd) {
vec3 normal = vec3(0.0f);
normal[index] = -(sign(rd[index]));
return normalize(normal);
}
struct S {
vec3 v;
uint i;
};
layout(binding = 0, std430) buffer S_1 {
vec3 v;
uint i;
} io;
void tint_symbol(uint idx) {
vec3 tint_symbol_1 = Bad(io.i, io.v);
io.v = tint_symbol_1;
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
tint_symbol(gl_LocalInvocationIndex);
return;
}