Sign in
dawn
/
dawn
/
edcd2bc7e531b4978ee73c44aabb96dec11aeab1
/
.
/
test
/
tint
/
expressions
/
index
/
let
/
param
/
vector.wgsl.expected.msl
blob: 8407b89dd9fd5d37445a357eb4ecadd41e08ff8d [
file
] [
log
] [
blame
]
#include
<metal_stdlib>
using
namespace
metal
;
float
f
(
int
i
)
{
float3
const
v
=
float3
(
1.0f
,
2.0f
,
3.0f
);
return
v
[
min
(
uint
(
i
),
2u
)];
}