mirror of
https://github.com/KhronosGroup/glslang
synced 2024-11-08 11:30:06 +00:00
Allow layout(std430) uniform with GL_EXT_scalar_block_layout
This commit is contained in:
parent
0db0010d3c
commit
27384e04f6
@ -27,6 +27,8 @@ layout(column_major, scalar) uniform B1
|
||||
S i[2]; // offset = 160 (aligned to multiple of 8) stride = 48
|
||||
};
|
||||
|
||||
layout (std430) uniform;
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
|
@ -3675,7 +3675,7 @@ void TParseContext::globalQualifierFixCheck(const TSourceLoc& loc, TQualifier& q
|
||||
if (blockName == nullptr &&
|
||||
qualifier.layoutPacking == ElpStd430)
|
||||
{
|
||||
error(loc, "it is invalid to declare std430 qualifier on uniform", "", "");
|
||||
requireExtensions(loc, 1, &E_GL_EXT_scalar_block_layout, "default std430 layout for uniform");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user