X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fcompiler.h;fp=source%2Fglsl%2Fcompiler.h;h=a1ab51f254a771566c337f7b392484a3984a4157;hb=c6b29fbf9927467b21dca65539a1fa2c98f96e0e;hp=e30bd709bb2aadef5cd585e114f6fdb6bc7f5ac8;hpb=dfde6f3568c1a840232cf860f4a260a987a1433b;p=libs%2Fgl.git diff --git a/source/glsl/compiler.h b/source/glsl/compiler.h index e30bd709..a1ab51f2 100644 --- a/source/glsl/compiler.h +++ b/source/glsl/compiler.h @@ -98,6 +98,15 @@ public: GLSL soucre). */ const std::map &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 &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 &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;