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