• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 310 es
2
3precision mediump float;
4
5void fooConst(const in float f, const in highp float g) { }
6
7void foo(in float f, in highp float g) { }
8
9      float retM (      float x) { return x; }
10highp float retH (highp float x) { return x; }
11      float retHM(highp float x) { return x; }
12highp float retMH(      float x) { return x; }
13
14void main()
15{
16    float aM, bM;
17    highp float aH, bH;
18    fooConst(aM, bM);   // must copy bM
19    fooConst(aH, bH);   // must copy aH
20    foo(aM, bM);
21    foo(aH, bH);
22
23    retM(aM);
24    retH(aH);
25    retHM(aH);
26    retMH(aM);
27}
28