mirror of
https://github.com/RPCS3/glslang.git
synced 2024-11-28 05:30:33 +00:00
097215f618
SPIR-V disallows bool in interface blocks, which is emulated with uint. When loading a bool variable (through accessChainLoad()), it's converted from uint to bool if it came from an interface block. This was handled for bool and bvecN, but not for bool arrays. This change implements the conversion for bool arrays. Closes #2694
18 lines
244 B
GLSL
18 lines
244 B
GLSL
#version 450 core
|
|
|
|
layout(std140, set=0, binding=0) uniform ub {
|
|
bool bi[2][3];
|
|
};
|
|
layout(std430, set=0, binding=1) buffer ssbo {
|
|
bool bo[2][3];
|
|
};
|
|
|
|
layout(location=0) out vec4 color;
|
|
|
|
void main()
|
|
{
|
|
bo = bi;
|
|
color = vec4(0);
|
|
}
|
|
|