* Fixes #2005 Allow multiple units in a stage to have push_constants as long as the blocks match. Requires #2006 to be fixed to be functional. * tweaks to #2005 fix after some testing * add unit tests for push constants across multiple compilation units For #2005 * update reference output for tests that fail validation * fix uninitialized result.validationResult
This commit is contained in:
parent
9b620aa0c1
commit
4b2483ee88
14 changed files with 503 additions and 1 deletions
18
Test/link.vk.differentPC.0.0.frag
Executable file
18
Test/link.vk.differentPC.0.0.frag
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#version 450
|
||||
|
||||
layout(location=0) out vec4 color;
|
||||
|
||||
layout (push_constant) uniform PushConstantBlock
|
||||
{
|
||||
vec4 color;
|
||||
vec4 color2;
|
||||
float scale;
|
||||
} uPC;
|
||||
|
||||
vec4 getColor2();
|
||||
float getScale();
|
||||
|
||||
void main()
|
||||
{
|
||||
color = uPC.color + getColor2() * getScale();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue