]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/framebuffer.h
Track the number of layers in Framebuffer
[libs/gl.git] / source / core / framebuffer.h
index b805721640f26f5ce764cf867f689a2a9411cb69..1a13ca5bc9dbc979fa4d9bbcfcee47a1eed9e831 100644 (file)
@@ -49,6 +49,7 @@ protected:
        std::vector<Attachment> attachments;
        unsigned width = 0;
        unsigned height = 0;
+       unsigned layers = 0;
        mutable unsigned dirty = 0;
 
        Framebuffer(bool);
@@ -71,6 +72,7 @@ public:
 
        unsigned get_width() const { return width; }
        unsigned get_height() const { return height; }
+       unsigned get_layers() const { return layers; }
 
 protected:
        void update() const;