X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fglsl%2Fspirv.h;h=addf8970315c5fb68e6d05d31c55c9b467ebf6c5;hb=b23a9af95c65c01d949153fc49e5091aaa7c3d30;hp=6971e2a9c43eb2ec8cc180b94043a6388229858e;hpb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;p=libs%2Fgl.git diff --git a/source/glsl/spirv.h b/source/glsl/spirv.h index 6971e2a9..addf8970 100644 --- a/source/glsl/spirv.h +++ b/source/glsl/spirv.h @@ -70,6 +70,7 @@ private: bool operator<(const ConstantKey &) const; }; + Features features; Stage *stage = 0; FunctionDeclaration *current_function = 0; std::vector interface_layouts; @@ -79,6 +80,7 @@ private: std::map imported_extension_ids; std::map declared_ids; std::map declared_uniform_ids; + std::map declared_spec_ids; std::map standard_type_ids; std::map image_type_ids; std::map array_type_ids; @@ -105,7 +107,7 @@ private: public: SpirVGenerator(); - void apply(Module &); + void apply(Module &, const Features &); const std::vector &get_code() const { return content.code; } private: