Sign in
fuchsia
/
third_party
/
glslang
/
refs/heads/upstream/GL_EXT_buffer_reference_uvec2
/
.
/
Test
/
spv.1.4.NonWritable.frag
blob: 386b446df6da802bc8a585f525993af8506d6598 [
file
] [
log
] [
blame
] [
edit
]
#version 450
layout
(
location
=
0
)
flat
in
int
index
;
layout
(
location
=
0
)
out
float
color
;
// lookup table
const
float
table
[
16
]
=
{
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
15
,
16
};
void
main
()
{
color
=
table
[
index
];
}