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
/
hlsl.nonint-index.frag
1
static const float array[3] = { 1, 2, 3 };
2
3
float main(float input : IN) : SV_Target0
4
{
5
// non-integer indexes get converted to uints:
6
// uint(input) 3.0 2.0 1.0
7
return array[input] + array[2.0] + array[true] + array[false];
8
}
9