dawn-cmake/test/unittest/reader/spirv/SpvUnaryArithTest_SNegate_U...

19 lines
284 B
Plaintext
Raw Normal View History

#include <metal_stdlib>
using namespace metal;
int2 tint_unary_minus(const int2 v) {
return select(-v, v, v == -2147483648);
}
void main_1() {
uint2 const x_1 = as_type<uint2>(tint_unary_minus(int2(30, 40)));
return;
}
fragment void tint_symbol() {
main_1();
return;
}