Sign in
dawn
/
dawn
/
c8dc12b4c838672cebd8f4192ca5e7ecf2955410
/
.
/
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
)));
}