45 static const math::color default_tint(1.0f, 1.0f, 1.0f, 1.0f);
65 static constexpr int max_mip_count = 10;
69 int mip_count) -> void;
79 cache_uniform(program.get(), u_pixel_size,
"u_pixelSize", gfx::uniform_type::Vec4);
80 cache_uniform(program.get(), u_params,
"u_params", gfx::uniform_type::Vec4);
81 cache_uniform(program.get(), s_tex,
"s_tex", gfx::uniform_type::Sampler);
82 cache_uniform(program.get(), s_exposure,
"s_exposure", gfx::uniform_type::Sampler);
88 std::unique_ptr<gpu_program> program;
89 } downsample_program_;
91 struct upsample_program : uniforms_cache
95 cache_uniform(program.get(), u_pixel_size,
"u_pixelSize", gfx::uniform_type::Vec4);
96 cache_uniform(program.get(), u_tint,
"u_tint", gfx::uniform_type::Vec4);
97 cache_uniform(program.get(), s_tex,
"s_tex", gfx::uniform_type::Sampler);
102 std::unique_ptr<gpu_program> program;
105 struct combine_program : uniforms_cache
107 void cache_uniforms()
109 cache_uniform(program.get(), s_scene,
"s_scene", gfx::uniform_type::Sampler);
110 cache_uniform(program.get(), s_bloom,
"s_bloom", gfx::uniform_type::Sampler);
114 std::unique_ptr<gpu_program> program;