]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/reflectdata.h
Pack descriptor set and binding in a single variable
[libs/gl.git] / source / core / reflectdata.h
index 2925da146b899b1e62ab642b09403400d8f2b761..a89e7fcf2972c973c89a803501ebbd6739f7f11c 100644 (file)
@@ -37,7 +37,6 @@ struct ReflectData
                unsigned matrix_stride = 0;
                DataType type = VOID;
                Tag tag;
-               int descriptor_set = 0;
                int binding = -1;
        };
 
@@ -45,7 +44,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,6 +65,7 @@ struct ReflectData
        LayoutHash layout_hash = 0;
        std::vector<AttributeInfo> attributes;
        unsigned n_clip_distances = 0;
+       unsigned n_descriptor_sets = 0;
 
        void update_layout_hash();
 };