]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/module.h
Store descriptor set in program reflection data
[libs/gl.git] / source / core / module.h
index a480b6139426efaeeb7287566d8bbdc1f2891690..1c62f340505a254e2fec0d40817c6335e1a49060 100644 (file)
@@ -58,6 +58,8 @@ public:
 
 private:
        virtual void compile(SL::Compiler &) = 0;
+
+       SL::Features create_features() const;
 };
 
 /**
@@ -154,7 +156,7 @@ public:
                const Structure *struct_type = 0;
                unsigned array_size = 0;
                int location = -1;
-               int descriptor_set = -1;
+               int descriptor_set = 0;
                int binding = -1;
                BuiltinSemantic builtin = NOT_BUILTIN;