Sign in
dawn
/
tint
/
ba1a8f8d05e97687fb3a3fd1d1c250af7af6d22b
/
.
/
test
/
expressions
/
binary
/
div_by_zero
/
by_expression
/
vec3-scalar
/
u32.wgsl.expected.hlsl
blob: f4bd21bd640ef4e96ce6e3462936956a0e026d0b [
file
] [
log
] [
blame
]
uint
value_or_one_if_zero_uint
(
uint
value
)
{
return
value
==
0u
?
1u
:
value
;
}
[
numthreads
(
1
,
1
,
1
)]
void
f
()
{
uint3 a
=
uint3
(
1u
,
2u
,
3u
);
uint
b
=
0u
;
const
uint3 r
=
(
a
/
value_or_one_if_zero_uint
((
b
+
b
)));
return
;
}