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