]> git.sesse.net Git - movit/blob - mirror_effect.h
Support top-left origin for compute shaders.
[movit] / mirror_effect.h
1 #ifndef _MOVIT_MIRROR_EFFECT_H
2 #define _MOVIT_MIRROR_EFFECT_H 1
3
4 // A simple horizontal mirroring.
5
6 #include <string>
7
8 #include "effect.h"
9
10 namespace movit {
11
12 class MirrorEffect : public Effect {
13 public:
14         MirrorEffect();
15         std::string effect_type_id() const override { return "MirrorEffect"; }
16         std::string output_fragment_shader() override;
17
18         bool needs_linear_light() const override { return false; }
19         bool needs_srgb_primaries() const override { return false; }
20         AlphaHandling alpha_handling() const override { return DONT_CARE_ALPHA_TYPE; }
21         bool one_to_one_sampling() const override { return true; }
22 };
23
24 }  // namespace movit
25
26 #endif // !defined(_MOVIT_MIRROR_EFFECT_H)