]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/program.h
Handle SPIR-V arrays with specialization constant for size
[libs/gl.git] / source / core / program.h
index 666cfd3eeda8f6a00449b9ab4d899ff64aa0af78..201d927037c57edf0d1464ca1af4002fb28a6d1a 100644 (file)
@@ -101,16 +101,17 @@ public:
        };
 
 private:
-       struct Bindings
+       struct TransientData
        {
                std::map<std::string, unsigned> textures;
                std::map<std::string, unsigned> blocks;
+               std::map<unsigned, int> spec_values;
        };
 
        unsigned id;
        std::vector<unsigned> stage_ids;
        const Module *module;
-       Bindings *bindings;
+       TransientData *transient;
        bool linked;
        std::vector<UniformBlockInfo> uniform_blocks;
        std::vector<UniformInfo> uniforms;