]> git.tdb.fi Git - libs/gl.git/blobdiff - source/core/module.h
Handle SPIR-V arrays with specialization constant for size
[libs/gl.git] / source / core / module.h
index 6ca522a5563d8a79348563f4c6170cc8ba2efcb6..2b632fab485e27fde131d83251ad6ff8519caa07 100644 (file)
@@ -78,6 +78,7 @@ public:
                OUTPUT = 3
        };
 
+       struct Constant;
        struct Structure;
        struct Variable;
 
@@ -97,6 +98,7 @@ public:
                const Structure *struct_type;
                unsigned offset;
                unsigned array_size;
+               const Constant *array_size_spec;
                unsigned array_stride;
                unsigned matrix_stride;
 
@@ -116,6 +118,7 @@ public:
                StorageClass storage;
                DataType type;
                const Structure *struct_type;
+               const Constant *array_size_spec;
                unsigned array_size;
                int location;
                int descriptor_set;
@@ -143,6 +146,7 @@ private:
        {
                DataType type;
                const Structure *struct_type;
+               const Constant *array_size_spec;
                unsigned array_size;
                unsigned array_stride;
                StorageClass storage;