dawn-cmake/test/expressions/unary/complement.wgsl.expected.hlsl
James Price c932b5535f Implement bitwise complement operator
This translates to/from OpNot for SPIR-V, and ~ for all three textual
language backends.

Fixed: tint:866
Change-Id: Id934fb309221e3fca0e7efa33edaaae137fd8085
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/54980
Auto-Submit: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-06-17 08:35:54 +00:00

21 lines
204 B
HLSL

[numthreads(1, 1, 1)]
void unused_entry_point() {
return;
}
int i(int x) {
return ~(x);
}
uint u(uint x) {
return ~(x);
}
int4 vi(int4 x) {
return ~(x);
}
uint4 vu(uint4 x) {
return ~(x);
}