]> 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 11f22a76f9326cbf76c9868eb83157954261e2cd..b1d2c7cabc54f81eea9d0a1ac2abcaf6bf4f2b69 100644 (file)
@@ -66,18 +66,17 @@ public:
        DEPRECATED typedef Step Pass;
 
 private:
-       struct Slot
+       struct PostProcStep
        {
-               Renderable *renderable;
-               std::set<Tag> passes;
+               PostProcessor *postproc;
+               bool owned;
 
-               Slot(Renderable *);
+               PostProcStep(PostProcessor *pp, bool o): postproc(pp), owned(o) { }
        };
 
        std::vector<Step> steps;
        const Camera *camera;
-       std::vector<Slot> renderables;
-       std::vector<RefPtr<PostProcessor> > postproc;
+       std::vector<PostProcStep> postproc;
        unsigned width;
        unsigned height;
        bool hdr;
@@ -85,6 +84,7 @@ private:
        unsigned samples;
        RenderTarget *target[2];
        RenderTarget *target_ms;
+       std::string debug_name;
 
 public:
        Sequence(unsigned, unsigned, bool = false);
@@ -135,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