mirror of
https://github.com/RPCS3/glslang.git
synced 2025-02-18 18:07:33 +00:00

* 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
15 lines
169 B
GLSL
Executable File
15 lines
169 B
GLSL
Executable File
#version 450
|
|
|
|
layout (push_constant) uniform PushConstantBlock
|
|
{
|
|
vec4 color;
|
|
vec4 color2;
|
|
float scale;
|
|
} uPC;
|
|
|
|
vec4
|
|
getColor2()
|
|
{
|
|
return uPC.color2;
|
|
}
|