From a8472c4fc8bce5db0d50d920f9c4159bda631e30 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 3 Apr 2021 17:11:34 +0300 Subject: [PATCH] Disallow the descriptor set qualifier for now It's only meaningful for Vulkan, which isn't implemented yet --- source/glsl/validate.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.43.0