Do not add layout qualifiers to variables for GLSL versions that don't support it
This commit is contained in:
parent
4d4e6d7a41
commit
42fe8c31f1
@ -804,6 +804,9 @@ bool CompilerGLSL::ssbo_is_std430_packing(const SPIRType &type)
|
||||
|
||||
string CompilerGLSL::layout_for_variable(const SPIRVariable &var)
|
||||
{
|
||||
if (is_legacy_es() || (!options.es && options.version < 330))
|
||||
return "";
|
||||
|
||||
vector<string> attr;
|
||||
|
||||
auto &dec = meta[var.self].decoration;
|
||||
|
Loading…
Reference in New Issue
Block a user