projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2908 from Biswa96/cmake-spirv-remap
[platform/upstream/glslang.git]
/
Test
/
spv.1.4.NonWritable.frag
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
}