mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-12 13:10:06 +00:00
bf6efd0316
When arguments are copied to make space for a writable formal parameter, and the formal parameter is relaxed precision, make the copy also relaxed precision.
18 lines
320 B
GLSL
18 lines
320 B
GLSL
#version 310 es
|
|
|
|
precision mediump float;
|
|
|
|
void fooConst(const in float f, const in highp float g) { }
|
|
|
|
void foo(in float f, 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
|
|
foo(aM, bM);
|
|
foo(aH, bH);
|
|
}
|