repo.or.cz
/
glslang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
ci: Remove gcc from macos matrix
[glslang.git]
/
Test
/
spv.1.4.NonWritable.frag
blob
386b446df6da802bc8a585f525993af8506d6598
1
#version 450
2
3
layout(location = 0) flat in int index;
4
5
layout(location = 0) out float color;
6
7
// lookup table
8
const float table[16] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 };
9
10
void main()
11
{
12
color = table[index];
13
}