nir: Add a nir_foreach_uniform_variable helper
[mesa.git] / src / mesa / program / prog_parameter.h
index 94aeb5540b503d2f29a33f9985a51e330c1b1083..1fb0c5b7d1fbe920f0828558097cf69ee9827899 100644 (file)
@@ -31,6 +31,8 @@
 #ifndef PROG_PARAMETER_H
 #define PROG_PARAMETER_H
 
+#include <stdbool.h>
+#include <stdint.h>
 #include "prog_statevars.h"
 
 #include <string.h>
@@ -112,6 +114,17 @@ struct gl_program_parameter
     * A sequence of STATE_* tokens and integers to identify GL state.
     */
    gl_state_index16 StateIndexes[STATE_LENGTH];
+
+   /**
+    * Index of this parameter's uniform storage.
+    */
+   uint32_t UniformStorageIndex;
+
+   /**
+    * Index of the first uniform storage that is associated with the same
+    * variable as this parameter.
+    */
+   uint32_t MainUniformStorageIndex;
 };