Track whether formal parameters declare reduced precision and match that with arguments, and if they differ, make a copy to promote the precision.
16 lines
242 B
GLSL
16 lines
242 B
GLSL
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
void fooConst(const in float f, const in highp float g)
|
|
{
|
|
}
|
|
|
|
void main()
|
|
{
|
|
float aM, bM;
|
|
highp float aH, bH;
|
|
fooConst(aM, bM); // must copy bM
|
|
fooConst(aH, bH); // must copy aH
|
|
}
|