]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/reflectdata.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / core / reflectdata.h
index 2925da146b899b1e62ab642b09403400d8f2b761..981f45f000f7b02d926af39d64dd19efaf990508 100644 (file)
@@ -17,7 +17,9 @@ struct ReflectData
        enum
        {
                DEFAULT_BLOCK = -1,
-               PUSH_CONSTANT = -2
+               PUSH_CONSTANT = -2,
+               UNIFORM_BLOCK_BINDING = 0,
+               TEXTURE_BINDING = 0x1000000
        };
 
        typedef unsigned LayoutHash;
@@ -37,7 +39,6 @@ struct ReflectData
                unsigned matrix_stride = 0;
                DataType type = VOID;
                Tag tag;
-               int descriptor_set = 0;
                int binding = -1;
        };
 
@@ -45,7 +46,6 @@ struct ReflectData
        {
                std::string name;
                unsigned data_size = 0;
-               int descriptor_set = 0;
                int bind_point = DEFAULT_BLOCK;
                std::vector<const UniformInfo *> uniforms;
                LayoutHash layout_hash = 0;
@@ -67,8 +67,13 @@ struct ReflectData
        LayoutHash layout_hash = 0;
        std::vector<AttributeInfo> attributes;
        unsigned n_clip_distances = 0;
+       unsigned n_descriptor_sets = 0;
+       unsigned push_constants_size = 0;
+       std::vector<int> used_bindings;
+       LinAl::Vector<unsigned, 3> compute_wg_size;
 
        void update_layout_hash();
+       void update_used_bindings();
 };
 
 } // namespace GL