summaryrefslogtreecommitdiff
path: root/src/mesa/shader/slang/slang_export.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/shader/slang/slang_export.h')
-rw-r--r--src/mesa/shader/slang/slang_export.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_export.h b/src/mesa/shader/slang/slang_export.h
index 57e7d51279..88a74fe26b 100644
--- a/src/mesa/shader/slang/slang_export.h
+++ b/src/mesa/shader/slang/slang_export.h
@@ -25,6 +25,8 @@
#if !defined SLANG_EXPORT_H
#define SLANG_EXPORT_H
+#include "slang_utility.h"
+
#if defined __cplusplus
extern "C" {
#endif
@@ -82,7 +84,7 @@ GLvoid slang_export_data_entry_ctr (slang_export_data_entry *);
GLvoid slang_export_data_entry_dtr (slang_export_data_entry *);
/*
- * Data export table. Holds <count> elements in <entries> array.
+ * Data export table.
*/
typedef struct
@@ -97,6 +99,31 @@ GLvoid slang_export_data_table_dtr (slang_export_data_table *);
slang_export_data_entry *slang_export_data_table_add (slang_export_data_table *);
/*
+ * Code export entry. Contains label name and its entry point (label, address).
+ */
+
+typedef struct
+{
+ slang_atom name;
+ GLuint address;
+} slang_export_code_entry;
+
+/*
+ * Code export table.
+ */
+
+typedef struct
+{
+ slang_export_code_entry *entries;
+ GLuint count;
+ slang_atom_pool *atoms;
+} slang_export_code_table;
+
+GLvoid slang_export_code_table_ctr (slang_export_code_table *);
+GLvoid slang_export_code_table_dtr (slang_export_code_table *);
+slang_export_code_entry *slang_export_code_table_add (slang_export_code_table *);
+
+/*
* _slang_find_exported_data()
*
* Parses the name string and returns corresponding data entry, data quantity and offset.