Allow 8/16-bit integer as array index
authorGreg Fischer <greg@lunarg.com>
Tue, 19 Oct 2021 00:28:01 +0000 (18:28 -0600)
committerGreg Fischer <greg@lunarg.com>
Wed, 20 Oct 2021 21:15:30 +0000 (15:15 -0600)
commit82b2668d584a23766c54e0d387c471c05515293c
tree8133dec252dd59b90da84bc5c211eb1af5ed26cd
parent6351fcef2888cf76a4405d756642c1e1ba2b4169
Allow 8/16-bit integer as array index

Also enable 8/16 bit int capability in SPIR-V in such cases.

Also enable 64 bit capabilities when used in operations.

Fixes #2779
SPIRV/SpvPostProcess.cpp
Test/baseResults/spv.int16.frag.out
Test/baseResults/spv.int8.frag.out
Test/spv.int16.frag
Test/spv.int8.frag
glslang/MachineIndependent/ParseHelper.cpp