Sign in
dawn
/
dawn
/
64adb22c6c314c63a94e3708d7d0c0764c4c6fbb
/
.
/
test
/
tint
/
expressions
/
index
/
var
/
let
/
param
/
array.wgsl.expected.dxc.hlsl
blob: 5ffd4a7f57189a0b8b7bde8aed37c712ae33cd1a [
file
] [
log
] [
blame
]
int
f
(
int
x
)
{
int
a
[
8
]
=
{
int
(
1
),
int
(
2
),
int
(
3
),
int
(
4
),
int
(
5
),
int
(
6
),
int
(
7
),
int
(
8
)};
int
i
=
x
;
uint
v
=
min
(
uint
(
i
),
7u
);
return
a
[
v
];
}
[
numthreads
(
1
,
1
,
1
)]
void
unused_entry_point
()
{
}