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

28 lines
495 B
Plaintext
Raw Normal View History

#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 io_block_ssbo {
S inner;
} io;
void tint_symbol(uint idx) {
vec3 tint_symbol_1 = Bad(io.inner.i, io.inner.v);
io.inner.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;
}