private:
struct Uniform
{
- int location;
- int desc_set;
- int bind_point;
-
- Uniform(): location(-1), desc_set(-1), bind_point(-1) { }
+ int location = -1;
+ int desc_set = 0;
+ int bind_point = -1;
};
+ Features features;
+ bool alloc_new = true;
std::map<std::string, std::set<unsigned> > used_locations;
std::map<std::string, Uniform> uniforms;
std::map<unsigned, std::set<unsigned> > used_bindings;
std::vector<InterfaceBlock *> unbound_blocks;
public:
- void apply(Module &, const Features &);
+ void apply(Module &, const Features &, bool = true);
private:
void apply(Stage &);