Comment the workaround for layout_for_variable.
This commit is contained in:
Родитель
64f62e53ce
Коммит
62d223adda
|
@ -804,7 +804,11 @@ bool CompilerGLSL::ssbo_is_std430_packing(const SPIRType &type)
|
||||||
|
|
||||||
string CompilerGLSL::layout_for_variable(const SPIRVariable &var)
|
string CompilerGLSL::layout_for_variable(const SPIRVariable &var)
|
||||||
{
|
{
|
||||||
if (is_legacy_es() || (!options.es && options.version < 130))
|
// FIXME: Come up with a better solution for when to disable layouts.
|
||||||
|
// Having layouts depend on extensions as well as which types
|
||||||
|
// of layouts are used. For now, the simple solution is to just disable
|
||||||
|
// layouts for legacy versions.
|
||||||
|
if (is_legacy())
|
||||||
return "";
|
return "";
|
||||||
|
|
||||||
vector<string> attr;
|
vector<string> attr;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче