blob: c7a751e306aaa8f7b8fd3e44fddcb72be10066f3 [file] [log] [blame]
steve-lunarg2efd6c62017-04-06 20:22:20 -06001static const float array[3] = { 1, 2, 3 };
2
3float 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