]> git.tdb.fi Git - libs/gl.git/blobdiff - source/glsl/compiler.h
Add legacy conversion for binding layout qualifiers
[libs/gl.git] / source / glsl / compiler.h
index e30bd709bb2aadef5cd585e114f6fdb6bc7f5ac8..a1ab51f254a771566c337f7b392484a3984a4157 100644 (file)
@@ -98,6 +98,15 @@ public:
        GLSL soucre). */
        const std::map<std::string, unsigned> &get_fragment_outputs() const;
 
+       /** Returns a map of texture bindings.  If the target GLSL version supports
+       bindings, the map is empty (bindings are included in the GLSL source). */
+       const std::map<std::string, unsigned> &get_texture_bindings() const;
+
+       /** Returns a map of uniform block bindings.  If the target GLSL version
+       supports bindings, the map is empty (bindings are included in the GLSL
+       source). */
+       const std::map<std::string, unsigned> &get_uniform_block_bindings() const;
+
        /** Returns the mapping of source indices to filenames.  Can be used to
        translate error messages. */
        const SourceMap &get_source_map() const;