Sign in
dawn
/
dawn
/
efec7f890ba9b5ae2d100b5521ae739d8265b5fb
/
.
/
test
/
tint
/
expressions
/
unary
/
negate
/
negate.wgsl.expected.ir.msl
blob: 49c53693f03b94ba88408f7320eff4bf8407d981 [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
int
i
(
int
x
)
{
return
as_type
<int>
((~(
as_type
<uint>
(
x
))
+
1u
));
}
int4 vi
(
int4 x
)
{
return
as_type
<int4>
((~(
as_type
<uint4>
(
x
))
+
uint4
(
1u
)));
}