mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-03 13:11:34 +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>
20 lines
190 B
Plaintext
20 lines
190 B
Plaintext
#include <metal_stdlib>
|
|
|
|
using namespace metal;
|
|
int i(int x) {
|
|
return ~(x);
|
|
}
|
|
|
|
uint u(uint x) {
|
|
return ~(x);
|
|
}
|
|
|
|
int4 vi(int4 x) {
|
|
return ~(x);
|
|
}
|
|
|
|
uint4 vu(uint4 x) {
|
|
return ~(x);
|
|
}
|
|
|