mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-16 12:21:35 +00:00
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>
21 lines
204 B
HLSL
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);
|
|
}
|