]> git.tdb.fi Git - libs/gl.git/blobdiff - source/backends/opengl/program_backend.h
Simplify Program by removing transient data
[libs/gl.git] / source / backends / opengl / program_backend.h
index 2a223ff5ae1b50ffc46fc343c4a45996a04208cc..14650708e32abe77ee8f3ac3e851212e4b2ce895 100644 (file)
@@ -23,12 +23,6 @@ protected:
                MAX_STAGES
        };
 
-       struct TransientData
-       {
-               std::map<std::string, unsigned> textures;
-               std::map<std::string, unsigned> blocks;
-       };
-
        struct UniformCall
        {
                using FuncPtr = void (*)(unsigned, unsigned, const void *);
@@ -52,15 +46,14 @@ protected:
 
        bool has_stages() const;
        unsigned add_stage(Stage);
-       void add_glsl_stages(const GlslModule &, const std::map<std::string, int> &, TransientData &);
+       void add_glsl_stages(const GlslModule &, const std::map<std::string, int> &);
        void compile_glsl_stage(const GlslModule &, unsigned);
        void add_spirv_stages(const SpirVModule &, const std::map<std::string, int> &);
 
-       void finalize(const Module &, TransientData &);
+       void link(const Module &);
        void query_uniforms();
        void query_uniform_blocks(const std::vector<ReflectData::UniformInfo *> &);
        void query_attributes();
-       void apply_bindings(const TransientData &);
        void finalize_uniforms();
 
        void set_debug_name(const std::string &);