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.)
14 lines
133 B
GLSL
Executable File
14 lines
133 B
GLSL
Executable File
#version 460
|
|
|
|
float f;
|
|
float a1;
|
|
|
|
float foo();
|
|
|
|
void main()
|
|
{
|
|
f = 10;
|
|
float g = foo();
|
|
f += g;
|
|
f += gl_FragCoord.y;
|
|
} |