X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fmodule.h;h=51924d606668db500e7b871f72f7677ae538190d;hb=3efe3bab1c8290bd49a957ebec0ad97e58a35fcf;hp=2a4cac6b06758faa45910ffa48c463b271ee07eb;hpb=d8d4c2aeaf109ab7ba55888bef5364fe11b5b02d;p=libs%2Fgl.git diff --git a/source/core/module.h b/source/core/module.h index 2a4cac6b..51924d60 100644 --- a/source/core/module.h +++ b/source/core/module.h @@ -253,6 +253,7 @@ private: std::vector variables; std::vector spec_constants; std::vector blocks; + bool specializable = false; public: virtual Format get_format() const { return SPIR_V; } @@ -269,6 +270,7 @@ public: const std::vector &get_variables() const { return variables; } const std::vector &get_spec_constants() const { return spec_constants; } const std::vector &get_blocks() const { return blocks; } + bool is_specializable() const { return specializable; } /** Creates a new module which is a specialized version of this one. */ SpirVModule *specialize(const std::map &) const;