Merge pull request #2715 from greg-lunarg/i2714

Allow layout(std430) uniform with GL_EXT_scalar_block_layout
This commit is contained in:
Greg Fischer 2021-07-30 16:12:21 -06:00 committed by GitHub
commit 50849374cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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()
{
}

View File

@ -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: