]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/sequence.h
Add debug name capability to more classes
[libs/gl.git] / source / render / sequence.h
index fb60e37159f7a4220753b093548afc2d9e6b1023..b1d2c7cabc54f81eea9d0a1ac2abcaf6bf4f2b69 100644 (file)
@@ -66,9 +66,17 @@ public:
        DEPRECATED typedef Step Pass;
 
 private:
+       struct PostProcStep
+       {
+               PostProcessor *postproc;
+               bool owned;
+
+               PostProcStep(PostProcessor *pp, bool o): postproc(pp), owned(o) { }
+       };
+
        std::vector<Step> steps;
        const Camera *camera;
-       std::vector<RefPtr<PostProcessor> > postproc;
+       std::vector<PostProcStep> postproc;
        unsigned width;
        unsigned height;
        bool hdr;
@@ -76,6 +84,7 @@ private:
        unsigned samples;
        RenderTarget *target[2];
        RenderTarget *target_ms;
+       std::string debug_name;
 
 public:
        Sequence(unsigned, unsigned, bool = false);
@@ -126,6 +135,11 @@ public:
 
 private:
        void create_targets(unsigned);
+
+public:
+       void set_debug_name(const std::string &);
+private:
+       void set_target_debug_names();
 };
 
 } // namespace GL