2 * Mesa 3-D graphics library
4 * Copyright (C) 2010 VMware, Inc. All Rights Reserved.
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation
9 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10 * and/or sell copies of the Software, and to permit persons to whom the
11 * Software is furnished to do so, subject to the following conditions:
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 #include "program/prog_parameter.h"
34 extern void GLAPIENTRY
35 _mesa_Uniform1fARB(GLint
, GLfloat
);
37 extern void GLAPIENTRY
38 _mesa_Uniform2fARB(GLint
, GLfloat
, GLfloat
);
40 extern void GLAPIENTRY
41 _mesa_Uniform3fARB(GLint
, GLfloat
, GLfloat
, GLfloat
);
43 extern void GLAPIENTRY
44 _mesa_Uniform4fARB(GLint
, GLfloat
, GLfloat
, GLfloat
, GLfloat
);
46 extern void GLAPIENTRY
47 _mesa_Uniform1iARB(GLint
, GLint
);
49 extern void GLAPIENTRY
50 _mesa_Uniform2iARB(GLint
, GLint
, GLint
);
52 extern void GLAPIENTRY
53 _mesa_Uniform3iARB(GLint
, GLint
, GLint
, GLint
);
55 extern void GLAPIENTRY
56 _mesa_Uniform4iARB(GLint
, GLint
, GLint
, GLint
, GLint
);
58 extern void GLAPIENTRY
59 _mesa_Uniform1fvARB(GLint
, GLsizei
, const GLfloat
*);
61 extern void GLAPIENTRY
62 _mesa_Uniform2fvARB(GLint
, GLsizei
, const GLfloat
*);
64 extern void GLAPIENTRY
65 _mesa_Uniform3fvARB(GLint
, GLsizei
, const GLfloat
*);
67 extern void GLAPIENTRY
68 _mesa_Uniform4fvARB(GLint
, GLsizei
, const GLfloat
*);
70 extern void GLAPIENTRY
71 _mesa_Uniform1ivARB(GLint
, GLsizei
, const GLint
*);
73 extern void GLAPIENTRY
74 _mesa_Uniform2ivARB(GLint
, GLsizei
, const GLint
*);
76 extern void GLAPIENTRY
77 _mesa_Uniform3ivARB(GLint
, GLsizei
, const GLint
*);
79 extern void GLAPIENTRY
80 _mesa_Uniform4ivARB(GLint
, GLsizei
, const GLint
*);
82 extern void GLAPIENTRY
83 _mesa_Uniform1ui(GLint location
, GLuint v0
);
85 extern void GLAPIENTRY
86 _mesa_Uniform2ui(GLint location
, GLuint v0
, GLuint v1
);
88 extern void GLAPIENTRY
89 _mesa_Uniform3ui(GLint location
, GLuint v0
, GLuint v1
, GLuint v2
);
91 extern void GLAPIENTRY
92 _mesa_Uniform4ui(GLint location
, GLuint v0
, GLuint v1
, GLuint v2
, GLuint v3
);
94 extern void GLAPIENTRY
95 _mesa_Uniform1uiv(GLint location
, GLsizei count
, const GLuint
*value
);
97 extern void GLAPIENTRY
98 _mesa_Uniform2uiv(GLint location
, GLsizei count
, const GLuint
*value
);
100 extern void GLAPIENTRY
101 _mesa_Uniform3uiv(GLint location
, GLsizei count
, const GLuint
*value
);
103 extern void GLAPIENTRY
104 _mesa_Uniform4uiv(GLint location
, GLsizei count
, const GLuint
*value
);
107 extern void GLAPIENTRY
108 _mesa_UniformMatrix2fvARB(GLint
, GLsizei
, GLboolean
, const GLfloat
*);
110 extern void GLAPIENTRY
111 _mesa_UniformMatrix3fvARB(GLint
, GLsizei
, GLboolean
, const GLfloat
*);
113 extern void GLAPIENTRY
114 _mesa_UniformMatrix4fvARB(GLint
, GLsizei
, GLboolean
, const GLfloat
*);
116 extern void GLAPIENTRY
117 _mesa_UniformMatrix2x3fv(GLint location
, GLsizei count
, GLboolean transpose
,
118 const GLfloat
*value
);
120 extern void GLAPIENTRY
121 _mesa_UniformMatrix3x2fv(GLint location
, GLsizei count
, GLboolean transpose
,
122 const GLfloat
*value
);
124 extern void GLAPIENTRY
125 _mesa_UniformMatrix2x4fv(GLint location
, GLsizei count
, GLboolean transpose
,
126 const GLfloat
*value
);
128 extern void GLAPIENTRY
129 _mesa_UniformMatrix4x2fv(GLint location
, GLsizei count
, GLboolean transpose
,
130 const GLfloat
*value
);
132 extern void GLAPIENTRY
133 _mesa_UniformMatrix3x4fv(GLint location
, GLsizei count
, GLboolean transpose
,
134 const GLfloat
*value
);
136 extern void GLAPIENTRY
137 _mesa_UniformMatrix4x3fv(GLint location
, GLsizei count
, GLboolean transpose
,
138 const GLfloat
*value
);
141 extern void GLAPIENTRY
142 _mesa_GetActiveUniformARB(GLhandleARB
, GLuint
, GLsizei
, GLsizei
*,
143 GLint
*, GLenum
*, GLcharARB
*);
145 extern void GLAPIENTRY
146 _mesa_GetUniformfvARB(GLhandleARB
, GLint
, GLfloat
*);
148 extern void GLAPIENTRY
149 _mesa_GetnUniformfvARB(GLhandleARB
, GLint
, GLsizei
, GLfloat
*);
151 extern void GLAPIENTRY
152 _mesa_GetUniformivARB(GLhandleARB
, GLint
, GLint
*);
154 extern void GLAPIENTRY
155 _mesa_GetnUniformivARB(GLhandleARB
, GLint
, GLsizei
, GLint
*);
157 extern void GLAPIENTRY
158 _mesa_GetUniformuiv(GLhandleARB
, GLint
, GLuint
*);
160 extern void GLAPIENTRY
161 _mesa_GetnUniformuivARB(GLhandleARB
, GLint
, GLsizei
, GLuint
*);
163 extern void GLAPIENTRY
164 _mesa_GetUniformdv(GLhandleARB
, GLint
, GLdouble
*);
166 extern void GLAPIENTRY
167 _mesa_GetnUniformdvARB(GLhandleARB
, GLint
, GLsizei
, GLdouble
*);
169 extern GLint GLAPIENTRY
170 _mesa_GetUniformLocationARB(GLhandleARB
, const GLcharARB
*);
173 _mesa_get_uniform_location(struct gl_context
*ctx
, struct gl_shader_program
*shProg
,
177 _mesa_uniform(struct gl_context
*ctx
, struct gl_shader_program
*shader_program
,
178 GLint location
, GLsizei count
,
179 const GLvoid
*values
, GLenum type
);
182 _mesa_uniform_matrix(struct gl_context
*ctx
, struct gl_shader_program
*shProg
,
183 GLint cols
, GLint rows
,
184 GLint location
, GLsizei count
,
185 GLboolean transpose
, const GLfloat
*values
);
188 _mesa_update_shader_textures_used(struct gl_program
*prog
);
192 _mesa_init_shader_uniform_dispatch(struct _glapi_table
*exec
);
194 struct gl_builtin_uniform_element
{
196 int tokens
[STATE_LENGTH
];
200 struct gl_builtin_uniform_desc
{
202 struct gl_builtin_uniform_element
*elements
;
203 unsigned int num_elements
;
206 extern const struct gl_builtin_uniform_desc _mesa_builtin_uniform_desc
[];
208 #endif /* UNIFORMS_H */