mirror of
https://github.com/RPCS3/glslang.git
synced 2025-02-24 04:41:33 +00:00
Merge pull request #2715 from greg-lunarg/i2714
Allow layout(std430) uniform with GL_EXT_scalar_block_layout
This commit is contained in:
commit
50849374cb
@ -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…
x
Reference in New Issue
Block a user