+ else if(scope==GLOBAL && variable->interface=="uniform" && features.target_api==VULKAN)
+ {
+ TypeDeclaration *type = variable->type_declaration;
+ while(BasicTypeDeclaration *basic = dynamic_cast<BasicTypeDeclaration *>(type))
+ type = basic->base_type;
+ if(!dynamic_cast<ImageTypeDeclaration *>(type))
+ error(var, "Interface qualifier 'uniform' not allowed on non-opaque variable in global scope");
+ }