X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=effect_chain.h;h=91b8e29f2c5fe12b5405e9778a3a3c948fab1d01;hp=855c3f52bf2b308c8090e384df8f9779f5aab23e;hb=6c79a9e08302571667a50a219d95354e687bd841;hpb=c3718fbd4be80a2825e7fdc66eb54a516e4c4df1 diff --git a/effect_chain.h b/effect_chain.h index 855c3f5..91b8e29 100644 --- a/effect_chain.h +++ b/effect_chain.h @@ -63,10 +63,11 @@ private: struct Phase { GLint glsl_program_num; bool input_needs_mipmaps; - std::vector inputs; + std::vector inputs; // Only from other phases; input textures are not counted here. std::vector effects; // In order. }; + void set_use_srgb_texture_format(Effect *effect); Effect *normalize_to_linear_gamma(Effect *input); Effect *normalize_to_srgb(Effect *input); @@ -77,11 +78,12 @@ private: // 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 *completed_effects); + void construct_glsl_programs(Effect *output); unsigned width, height; ImageFormat output_format; std::vector effects; + std::vector inputs; // Also contained in effects. std::map effect_ids; std::map effect_output_textures; std::map > outgoing_links;