This is one step in providing full linker functionality for creating correct SPIR-V from multiple compilation units for the same stage. (This was the only remaining "hard" part. The rest should be simple.)
12 lines
129 B
GLSL
Executable File
12 lines
129 B
GLSL
Executable File
#version 460
|
|
|
|
float f;
|
|
float h3 = 3.0;
|
|
|
|
float bar()
|
|
{
|
|
h3 *= f;
|
|
float g3 = 2 * h3;
|
|
return h3 + g3 + gl_FragCoord.y;
|
|
}
|