blob: 28efef93492a5395d16e41741b08e194f09b5b41 [file] [log] [blame]
#version 310 es
struct Constants {
uint zero;
};
layout(binding = 0, std140) uniform constants_block_ubo {
Constants inner;
} constants;
struct Result {
uint value;
};
layout(binding = 1, std430) buffer result_block_ssbo {
Result inner;
} result;
struct TestData {
int data[3];
};
layout(binding = 0, std430) buffer s_block_ssbo {
TestData inner;
} s;
int runTest() {
return atomicOr(s.inner.data[(0u + uint(constants.inner.zero))], 0);
}
void tint_symbol() {
int tint_symbol_1 = runTest();
result.inner.value = uint(tint_symbol_1);
}
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
void main() {
tint_symbol();
return;
}