Sign in
dawn
/
dawn
/
9be037cf1bcbd4a37d083d079f4e457e2b7f5182
/
.
/
test
/
tint
/
statements
/
decrement
/
split.wgsl.expected.msl
blob: e55cc92f0808fda89fda8259f65313b8faff856c [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
int
tint_unary_minus
(
const
int
v
)
{
return
select
(-
v
,
v
,
v
==
-
2147483648
);
}
void
tint_symbol
()
{
int
b
=
2
;
int
c
=
as_type
<int>
((
as_type
<uint>
(
b
)
-
as_type
<uint>
(
tint_unary_minus
(
b
))));
}