X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fprogram.h;h=dd7d4b5f029789a074815ff94d9112e27c6818a6;hb=8e58fc4da8443cb67fe4cd70d6f68de2be73011d;hp=770c6badc1cbe31a69945a805e1dd1346d8b91ff;hpb=f82ef715f0d7e1e7d0b93be4b7b89c8ce6bba40b;p=libs%2Fgl.git diff --git a/source/core/program.h b/source/core/program.h index 770c6bad..dd7d4b5f 100644 --- a/source/core/program.h +++ b/source/core/program.h @@ -13,8 +13,10 @@ namespace Msp { namespace GL { /** -A complete shader program. Programs can be assembled of individual Shaders or -generated with a set of standard features. +A shader program consisting of one or more stages. + +Programs are created from Modules. Specialization values can be applied to +customize behaviour of the module. */ class Program: public ProgramBackend { @@ -59,8 +61,8 @@ public: void add_stages(const Module &, const std::map & = std::map()); private: - void collect_uniforms(const SpirVModule &, const std::map &); - void collect_block_uniforms(const SpirVModule::Structure &, const std::string &, unsigned, const std::map &, std::vector &); + void collect_uniforms(const SpirVModule &); + void collect_block_uniforms(const SpirVModule::Structure &, const std::string &, unsigned, std::vector &); void collect_attributes(const SpirVModule &); void collect_builtins(const SpirVModule &); void collect_builtins(const SpirVModule::Structure &);