#include <msp/core/hash.h>
#include <msp/core/raii.h>
#include "generate.h"
+#include "reflect.h"
using namespace std;
VariableDeclaration* iface_var = new VariableDeclaration;
iface_var->sampling = var.sampling;
+ if(stage->type==Stage::FRAGMENT && iface=="in")
+ if(BasicTypeDeclaration *basic = dynamic_cast<BasicTypeDeclaration *>(var.type_declaration))
+ if(BasicTypeDeclaration *elem = get_element_type(*basic))
+ if(elem->kind==BasicTypeDeclaration::INT)
+ iface_var->interpolation = "flat";
iface_var->interface = iface;
iface_var->type = var.type;
iface_var->name = name;