diff options
author | Michal Krol <[email protected]> | 2006-04-04 10:18:07 +0000 |
---|---|---|
committer | Michal Krol <[email protected]> | 2006-04-04 10:18:07 +0000 |
commit | b4e9750bf4996ca5bb622bbbe28be4f071811bc6 (patch) | |
tree | e0c595b22aeee885b4910267c8dc0995e3d362d5 /src/mesa/shader/slang/slang_link.h | |
parent | 607b61a994d8dca150d5611b18db9b55755f73b4 (diff) |
More GLSL code:
- add support for varyings;
GLSL fixes:
- pow was wrongly computed in x86 back-end;
Diffstat (limited to 'src/mesa/shader/slang/slang_link.h')
-rw-r--r-- | src/mesa/shader/slang/slang_link.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/mesa/shader/slang/slang_link.h b/src/mesa/shader/slang/slang_link.h index 1592aefe2ec..e74c2565621 100644 --- a/src/mesa/shader/slang/slang_link.h +++ b/src/mesa/shader/slang/slang_link.h @@ -65,6 +65,27 @@ typedef struct typedef struct
{
+ GLuint vert_addr;
+ GLuint frag_addr;
+} slang_varying_slot;
+
+typedef struct
+{
+ slang_export_data_quant *quant;
+ char *name;
+ GLuint slot;
+} slang_varying_binding;
+
+typedef struct
+{
+ slang_varying_binding table[MAX_VARYING_FLOATS];
+ GLuint count;
+ slang_varying_slot slots[MAX_VARYING_FLOATS];
+ GLuint total;
+} slang_varying_bindings;
+
+typedef struct
+{
slang_export_data_quant *quant;
GLuint frag_address;
} slang_texture_usage;
@@ -173,6 +194,7 @@ typedef struct {
slang_uniform_bindings uniforms;
slang_active_uniforms active_uniforms;
+ slang_varying_bindings varyings;
slang_texture_usages texture_usage;
GLuint common_fixed_entries[SLANG_SHADER_MAX][SLANG_COMMON_FIXED_MAX];
GLuint vertex_fixed_entries[SLANG_VERTEX_FIXED_MAX];
|