From: Mikko Rasa Date: Sat, 3 Apr 2021 14:11:34 +0000 (+0300) Subject: Disallow the descriptor set qualifier for now X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a8472c4fc8bce5db0d50d920f9c4159bda631e30;p=libs%2Fgl.git Disallow the descriptor set qualifier for now It's only meaningful for Vulkan, which isn't implemented yet --- diff --git a/source/glsl/validate.cpp b/source/glsl/validate.cpp index 889eee22..7235e223 100644 --- a/source/glsl/validate.cpp +++ b/source/glsl/validate.cpp @@ -70,6 +70,12 @@ void DeclarationValidator::visit(Layout &layout) allowed = (variable && scope==GLOBAL); else if(i->name=="binding" || i->name=="set") { + if(i->name=="set") + { + error(layout, "Layout qualifier 'set' not allowed when targeting OpenGL"); + continue; + } + if(variable) { TypeDeclaration *type = variable->type_declaration;