add cross-stage check for missing outputs
If an 'in' is present in a shader stage, make sure a matching 'out' is present in the previous stage. Only enabled when doing Vulkan. This commit also fixes a bug where previous stage's linkerObjects got polluted with 'in' variables from the next stage when merging linker objects.
This commit is contained in:
parent
6a28e226c7
commit
69249e46b6
6 changed files with 439 additions and 25 deletions
14
Test/iomap.crossStage.vk.2.vert
Executable file
14
Test/iomap.crossStage.vk.2.vert
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#version 460
|
||||
|
||||
out VV
|
||||
{
|
||||
vec4 val;
|
||||
};
|
||||
out vec4 color;
|
||||
void main()
|
||||
{
|
||||
val = vec4(0.5);
|
||||
color = vec4(1.0);
|
||||
gl_Position = vec4(1.0);
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue