• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 130
2
3void foo(float normalVar, out float outVar, inout float inoutVar);
4
5void main()
6{
7   int undefinedIndex;
8   int definedIndex = 2;
9   float willBeDefined[4];
10
11   foo(willBeDefined[undefinedIndex], willBeDefined[undefinedIndex], willBeDefined[undefinedIndex]);
12   foo(willBeDefined[definedIndex], willBeDefined[definedIndex], willBeDefined[definedIndex]);
13   willBeDefined[0] = 10.0;
14   foo(willBeDefined[undefinedIndex], willBeDefined[undefinedIndex], willBeDefined[undefinedIndex]);
15   foo(willBeDefined[definedIndex], willBeDefined[definedIndex], willBeDefined[definedIndex]);
16}
17
18