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
222 B
GLSL
Executable File
14 lines
222 B
GLSL
Executable File
#version 410
|
|
// a different version number makes different id's for the same shared symbol
|
|
|
|
float a2;
|
|
float f;
|
|
|
|
float bar();
|
|
|
|
float foo()
|
|
{
|
|
float h2 = 2 * f;
|
|
float g2 = bar();
|
|
return h2 + g2 + gl_FragCoord.y;
|
|
} |