struct Phase {
GLint glsl_program_num;
bool input_needs_mipmaps;
- std::vector<Effect *> inputs;
+ std::vector<Effect *> inputs; // Only from other phases; input textures are not counted here.
std::vector<Effect *> effects; // In order.
};
+ void set_use_srgb_texture_format(Effect *effect);
Effect *normalize_to_linear_gamma(Effect *input);
Effect *normalize_to_srgb(Effect *input);
// Create all GLSL programs needed to compute the given effect, and all outputs
// that depends on it (whenever possible).
- void construct_glsl_programs(Effect *start, std::set<Effect *> *completed_effects);
+ void construct_glsl_programs(Effect *output);
unsigned width, height;
- ImageFormat input_format, output_format;
- std::vector<Effect *> effects, unexpanded_effects;
+ ImageFormat output_format;
+ std::vector<Effect *> effects;
+ std::vector<Input *> inputs; // Also contained in effects.
std::map<Effect *, std::string> effect_ids;
std::map<Effect *, GLuint> effect_output_textures;
std::map<Effect *, std::vector<Effect *> > outgoing_links;