]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/pipelinestate.h
Track the in-use state of resource bindings in PipelineState
[libs/gl.git] / source / core / pipelinestate.h
index 105003d1750de54720d9071360eaf7f1236a9cb7..89cf1cd7261df3c29f20cb769eddc6e6c6c93bb7 100644 (file)
@@ -35,6 +35,7 @@ private:
        {
                unsigned binding = 0;
                mutable bool changed = false;
+               mutable bool used = false;
                const Texture *texture = 0;
                const Sampler *sampler = 0;
 
@@ -45,6 +46,7 @@ private:
        {
                int binding = 0;
                mutable bool changed = false;
+               mutable bool used = false;
                const UniformBlock *block = 0;
 
                BoundUniformBlock(int b): binding(b) { }