1/* 2 * Mesa 3-D graphics library 3 * 4 * Copyright (C) 2010 VMware, Inc. All Rights Reserved. 5 * 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: 12 * 13 * The above copyright notice and this permission notice shall be included 14 * in all copies or substantial portions of the Software. 15 * 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 OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 * OTHER DEALINGS IN THE SOFTWARE. 23 */ 24 25 26#ifndef UNIFORMS_H 27#define UNIFORMS_H 28 29#include "main/glheader.h" 30#include "compiler/glsl_types.h" 31#include "compiler/glsl/ir_uniform.h" 32#include "program/prog_parameter.h" 33 34#ifdef __cplusplus 35extern "C" { 36#endif 37 38 39struct gl_program; 40struct _glapi_table; 41 42void GLAPIENTRY 43_mesa_Uniform1f(GLint, GLfloat); 44void GLAPIENTRY 45_mesa_Uniform2f(GLint, GLfloat, GLfloat); 46void GLAPIENTRY 47_mesa_Uniform3f(GLint, GLfloat, GLfloat, GLfloat); 48void GLAPIENTRY 49_mesa_Uniform4f(GLint, GLfloat, GLfloat, GLfloat, GLfloat); 50void GLAPIENTRY 51_mesa_Uniform1i(GLint, GLint); 52void GLAPIENTRY 53_mesa_Uniform2i(GLint, GLint, GLint); 54void GLAPIENTRY 55_mesa_Uniform3i(GLint, GLint, GLint, GLint); 56void GLAPIENTRY 57_mesa_Uniform4i(GLint, GLint, GLint, GLint, GLint); 58void GLAPIENTRY 59_mesa_Uniform1fv(GLint, GLsizei, const GLfloat *); 60void GLAPIENTRY 61_mesa_Uniform2fv(GLint, GLsizei, const GLfloat *); 62void GLAPIENTRY 63_mesa_Uniform3fv(GLint, GLsizei, const GLfloat *); 64void GLAPIENTRY 65_mesa_Uniform4fv(GLint, GLsizei, const GLfloat *); 66void GLAPIENTRY 67_mesa_Uniform1iv(GLint, GLsizei, const GLint *); 68void GLAPIENTRY 69_mesa_Uniform2iv(GLint, GLsizei, const GLint *); 70void GLAPIENTRY 71_mesa_Uniform3iv(GLint, GLsizei, const GLint *); 72void GLAPIENTRY 73_mesa_Uniform4iv(GLint, GLsizei, const GLint *); 74void GLAPIENTRY 75_mesa_Uniform1ui(GLint location, GLuint v0); 76void GLAPIENTRY 77_mesa_Uniform2ui(GLint location, GLuint v0, GLuint v1); 78void GLAPIENTRY 79_mesa_Uniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2); 80void GLAPIENTRY 81_mesa_Uniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3); 82void GLAPIENTRY 83_mesa_Uniform1uiv(GLint location, GLsizei count, const GLuint *value); 84void GLAPIENTRY 85_mesa_Uniform2uiv(GLint location, GLsizei count, const GLuint *value); 86void GLAPIENTRY 87_mesa_Uniform3uiv(GLint location, GLsizei count, const GLuint *value); 88void GLAPIENTRY 89_mesa_Uniform4uiv(GLint location, GLsizei count, const GLuint *value); 90void GLAPIENTRY 91_mesa_UniformMatrix2fv(GLint, GLsizei, GLboolean, const GLfloat *); 92void GLAPIENTRY 93_mesa_UniformMatrix3fv(GLint, GLsizei, GLboolean, const GLfloat *); 94void GLAPIENTRY 95_mesa_UniformMatrix4fv(GLint, GLsizei, GLboolean, const GLfloat *); 96void GLAPIENTRY 97_mesa_UniformMatrix2x3fv(GLint location, GLsizei count, GLboolean transpose, 98 const GLfloat *value); 99void GLAPIENTRY 100_mesa_UniformMatrix3x2fv(GLint location, GLsizei count, GLboolean transpose, 101 const GLfloat *value); 102void GLAPIENTRY 103_mesa_UniformMatrix2x4fv(GLint location, GLsizei count, GLboolean transpose, 104 const GLfloat *value); 105void GLAPIENTRY 106_mesa_UniformMatrix4x2fv(GLint location, GLsizei count, GLboolean transpose, 107 const GLfloat *value); 108void GLAPIENTRY 109_mesa_UniformMatrix3x4fv(GLint location, GLsizei count, GLboolean transpose, 110 const GLfloat *value); 111void GLAPIENTRY 112_mesa_UniformMatrix4x3fv(GLint location, GLsizei count, GLboolean transpose, 113 const GLfloat *value); 114 115void GLAPIENTRY 116_mesa_UniformHandleui64ARB(GLint location, GLuint64 value); 117void GLAPIENTRY 118_mesa_UniformHandleui64vARB(GLint location, GLsizei count, 119 const GLuint64 *value); 120void GLAPIENTRY 121_mesa_ProgramUniformHandleui64ARB(GLuint program, GLint location, 122 GLuint64 value); 123void GLAPIENTRY 124_mesa_ProgramUniformHandleui64vARB(GLuint program, GLint location, 125 GLsizei count, const GLuint64 *values); 126 127void GLAPIENTRY 128_mesa_ProgramUniform1f(GLuint program, GLint, GLfloat); 129void GLAPIENTRY 130_mesa_ProgramUniform2f(GLuint program, GLint, GLfloat, GLfloat); 131void GLAPIENTRY 132_mesa_ProgramUniform3f(GLuint program, GLint, GLfloat, GLfloat, GLfloat); 133void GLAPIENTRY 134_mesa_ProgramUniform4f(GLuint program, GLint, GLfloat, GLfloat, GLfloat, GLfloat); 135void GLAPIENTRY 136_mesa_ProgramUniform1i(GLuint program, GLint, GLint); 137void GLAPIENTRY 138_mesa_ProgramUniform2i(GLuint program, GLint, GLint, GLint); 139void GLAPIENTRY 140_mesa_ProgramUniform3i(GLuint program, GLint, GLint, GLint, GLint); 141void GLAPIENTRY 142_mesa_ProgramUniform4i(GLuint program, GLint, GLint, GLint, GLint, GLint); 143void GLAPIENTRY 144_mesa_ProgramUniform1fv(GLuint program, GLint, GLsizei, const GLfloat *); 145void GLAPIENTRY 146_mesa_ProgramUniform2fv(GLuint program, GLint, GLsizei, const GLfloat *); 147void GLAPIENTRY 148_mesa_ProgramUniform3fv(GLuint program, GLint, GLsizei, const GLfloat *); 149void GLAPIENTRY 150_mesa_ProgramUniform4fv(GLuint program, GLint, GLsizei, const GLfloat *); 151void GLAPIENTRY 152_mesa_ProgramUniform1iv(GLuint program, GLint, GLsizei, const GLint *); 153void GLAPIENTRY 154_mesa_ProgramUniform2iv(GLuint program, GLint, GLsizei, const GLint *); 155void GLAPIENTRY 156_mesa_ProgramUniform3iv(GLuint program, GLint, GLsizei, const GLint *); 157void GLAPIENTRY 158_mesa_ProgramUniform4iv(GLuint program, GLint, GLsizei, const GLint *); 159void GLAPIENTRY 160_mesa_ProgramUniform1ui(GLuint program, GLint location, GLuint v0); 161void GLAPIENTRY 162_mesa_ProgramUniform2ui(GLuint program, GLint location, GLuint v0, GLuint v1); 163void GLAPIENTRY 164_mesa_ProgramUniform3ui(GLuint program, GLint location, GLuint v0, GLuint v1, 165 GLuint v2); 166void GLAPIENTRY 167_mesa_ProgramUniform4ui(GLuint program, GLint location, GLuint v0, GLuint v1, 168 GLuint v2, GLuint v3); 169void GLAPIENTRY 170_mesa_ProgramUniform1uiv(GLuint program, GLint location, GLsizei count, 171 const GLuint *value); 172void GLAPIENTRY 173_mesa_ProgramUniform2uiv(GLuint program, GLint location, GLsizei count, 174 const GLuint *value); 175void GLAPIENTRY 176_mesa_ProgramUniform3uiv(GLuint program, GLint location, GLsizei count, 177 const GLuint *value); 178void GLAPIENTRY 179_mesa_ProgramUniform4uiv(GLuint program, GLint location, GLsizei count, 180 const GLuint *value); 181void GLAPIENTRY 182_mesa_ProgramUniformMatrix2fv(GLuint program, GLint, GLsizei, GLboolean, 183 const GLfloat *); 184void GLAPIENTRY 185_mesa_ProgramUniformMatrix3fv(GLuint program, GLint, GLsizei, GLboolean, 186 const GLfloat *); 187void GLAPIENTRY 188_mesa_ProgramUniformMatrix4fv(GLuint program, GLint, GLsizei, GLboolean, 189 const GLfloat *); 190void GLAPIENTRY 191_mesa_ProgramUniformMatrix2x3fv(GLuint program, GLint location, GLsizei count, 192 GLboolean transpose, const GLfloat *value); 193void GLAPIENTRY 194_mesa_ProgramUniformMatrix3x2fv(GLuint program, GLint location, GLsizei count, 195 GLboolean transpose, const GLfloat *value); 196void GLAPIENTRY 197_mesa_ProgramUniformMatrix2x4fv(GLuint program, GLint location, GLsizei count, 198 GLboolean transpose, const GLfloat *value); 199void GLAPIENTRY 200_mesa_ProgramUniformMatrix4x2fv(GLuint program, GLint location, GLsizei count, 201 GLboolean transpose, const GLfloat *value); 202void GLAPIENTRY 203_mesa_ProgramUniformMatrix3x4fv(GLuint program, GLint location, GLsizei count, 204 GLboolean transpose, const GLfloat *value); 205void GLAPIENTRY 206_mesa_ProgramUniformMatrix4x3fv(GLuint program, GLint location, GLsizei count, 207 GLboolean transpose, const GLfloat *value); 208 209void GLAPIENTRY 210_mesa_GetnUniformfvARB(GLuint, GLint, GLsizei, GLfloat *); 211void GLAPIENTRY 212_mesa_GetUniformfv(GLuint, GLint, GLfloat *); 213void GLAPIENTRY 214_mesa_GetnUniformivARB(GLuint, GLint, GLsizei, GLint *); 215void GLAPIENTRY 216_mesa_GetUniformuiv(GLuint, GLint, GLuint *); 217void GLAPIENTRY 218_mesa_GetnUniformuivARB(GLuint, GLint, GLsizei, GLuint *); 219void GLAPIENTRY 220_mesa_GetUniformuiv(GLuint program, GLint location, GLuint *params); 221void GLAPIENTRY 222_mesa_GetnUniformdvARB(GLuint, GLint, GLsizei, GLdouble *); 223void GLAPIENTRY 224_mesa_GetUniformdv(GLuint, GLint, GLdouble *); 225GLint 226_mesa_GetUniformLocation_impl(GLuint, const GLcharARB *, bool glthread); 227GLint GLAPIENTRY 228_mesa_GetUniformLocation(GLuint, const GLcharARB *); 229GLint GLAPIENTRY 230_mesa_GetUniformLocation_no_error(GLuint, const GLcharARB *); 231GLuint GLAPIENTRY 232_mesa_GetUniformBlockIndex(GLuint program, 233 const GLchar *uniformBlockName); 234void GLAPIENTRY 235_mesa_GetUniformIndices(GLuint program, 236 GLsizei uniformCount, 237 const GLchar * const *uniformNames, 238 GLuint *uniformIndices); 239 240void GLAPIENTRY 241_mesa_UniformBlockBinding_no_error(GLuint program, GLuint uniformBlockIndex, 242 GLuint uniformBlockBinding); 243 244void GLAPIENTRY 245_mesa_UniformBlockBinding(GLuint program, 246 GLuint uniformBlockIndex, 247 GLuint uniformBlockBinding); 248 249void GLAPIENTRY 250_mesa_ShaderStorageBlockBinding_no_error(GLuint program, 251 GLuint shaderStorageBlockIndex, 252 GLuint shaderStorageBlockBinding); 253 254void GLAPIENTRY 255_mesa_ShaderStorageBlockBinding(GLuint program, 256 GLuint shaderStorageBlockIndex, 257 GLuint shaderStorageBlockBinding); 258void GLAPIENTRY 259_mesa_GetActiveAtomicCounterBufferiv(GLuint program, GLuint bufferIndex, 260 GLenum pname, GLint *params); 261void GLAPIENTRY 262_mesa_GetActiveUniformBlockiv(GLuint program, 263 GLuint uniformBlockIndex, 264 GLenum pname, 265 GLint *params); 266void GLAPIENTRY 267_mesa_GetActiveUniformBlockName(GLuint program, 268 GLuint uniformBlockIndex, 269 GLsizei bufSize, 270 GLsizei *length, 271 GLchar *uniformBlockName); 272void GLAPIENTRY 273_mesa_GetActiveUniformName(GLuint program, GLuint uniformIndex, 274 GLsizei bufSize, GLsizei *length, 275 GLchar *uniformName); 276void 277_mesa_GetActiveUniform_impl(GLuint, GLuint, GLsizei, GLsizei *, 278 GLint *, GLenum *, GLcharARB *, 279 bool glthread); 280void GLAPIENTRY 281_mesa_GetActiveUniform(GLuint, GLuint, GLsizei, GLsizei *, 282 GLint *, GLenum *, GLcharARB *); 283void GLAPIENTRY 284_mesa_GetActiveUniformsiv(GLuint program, 285 GLsizei uniformCount, 286 const GLuint *uniformIndices, 287 GLenum pname, 288 GLint *params); 289void GLAPIENTRY 290_mesa_GetUniformiv(GLuint, GLint, GLint *); 291 292void GLAPIENTRY 293_mesa_Uniform1d(GLint, GLdouble); 294void GLAPIENTRY 295_mesa_Uniform2d(GLint, GLdouble, GLdouble); 296void GLAPIENTRY 297_mesa_Uniform3d(GLint, GLdouble, GLdouble, GLdouble); 298void GLAPIENTRY 299_mesa_Uniform4d(GLint, GLdouble, GLdouble, GLdouble, GLdouble); 300 301void GLAPIENTRY 302_mesa_Uniform1dv(GLint, GLsizei, const GLdouble *); 303void GLAPIENTRY 304_mesa_Uniform2dv(GLint, GLsizei, const GLdouble *); 305void GLAPIENTRY 306_mesa_Uniform3dv(GLint, GLsizei, const GLdouble *); 307void GLAPIENTRY 308_mesa_Uniform4dv(GLint, GLsizei, const GLdouble *); 309 310void GLAPIENTRY 311_mesa_GetUniformi64vARB(GLuint, GLint, GLint64 *); 312void GLAPIENTRY 313_mesa_GetUniformui64vARB(GLuint, GLint, GLuint64 *); 314 315void GLAPIENTRY 316_mesa_GetnUniformi64vARB(GLuint, GLint, GLsizei, GLint64 *); 317void GLAPIENTRY 318_mesa_GetnUniformui64vARB(GLuint, GLint, GLsizei, GLuint64 *); 319 320void GLAPIENTRY 321_mesa_UniformMatrix2dv(GLint, GLsizei, GLboolean, const GLdouble *); 322void GLAPIENTRY 323_mesa_UniformMatrix3dv(GLint, GLsizei, GLboolean, const GLdouble *); 324void GLAPIENTRY 325_mesa_UniformMatrix4dv(GLint, GLsizei, GLboolean, const GLdouble *); 326void GLAPIENTRY 327_mesa_UniformMatrix2x3dv(GLint location, GLsizei count, GLboolean transpose, 328 const GLdouble *value); 329void GLAPIENTRY 330_mesa_UniformMatrix3x2dv(GLint location, GLsizei count, GLboolean transpose, 331 const GLdouble *value); 332void GLAPIENTRY 333_mesa_UniformMatrix2x4dv(GLint location, GLsizei count, GLboolean transpose, 334 const GLdouble *value); 335void GLAPIENTRY 336_mesa_UniformMatrix4x2dv(GLint location, GLsizei count, GLboolean transpose, 337 const GLdouble *value); 338void GLAPIENTRY 339_mesa_UniformMatrix3x4dv(GLint location, GLsizei count, GLboolean transpose, 340 const GLdouble *value); 341void GLAPIENTRY 342_mesa_UniformMatrix4x3dv(GLint location, GLsizei count, GLboolean transpose, 343 const GLdouble *value); 344 345void GLAPIENTRY 346_mesa_ProgramUniform1d(GLuint program, GLint, GLdouble); 347void GLAPIENTRY 348_mesa_ProgramUniform2d(GLuint program, GLint, GLdouble, GLdouble); 349void GLAPIENTRY 350_mesa_ProgramUniform3d(GLuint program, GLint, GLdouble, GLdouble, GLdouble); 351void GLAPIENTRY 352_mesa_ProgramUniform4d(GLuint program, GLint, GLdouble, GLdouble, GLdouble, GLdouble); 353 354void GLAPIENTRY 355_mesa_ProgramUniform1dv(GLuint program, GLint, GLsizei, const GLdouble *); 356void GLAPIENTRY 357_mesa_ProgramUniform2dv(GLuint program, GLint, GLsizei, const GLdouble *); 358void GLAPIENTRY 359_mesa_ProgramUniform3dv(GLuint program, GLint, GLsizei, const GLdouble *); 360void GLAPIENTRY 361_mesa_ProgramUniform4dv(GLuint program, GLint, GLsizei, const GLdouble *); 362 363void GLAPIENTRY 364_mesa_ProgramUniformMatrix2dv(GLuint program, GLint, GLsizei, GLboolean, 365 const GLdouble *); 366void GLAPIENTRY 367_mesa_ProgramUniformMatrix3dv(GLuint program, GLint, GLsizei, GLboolean, 368 const GLdouble *); 369void GLAPIENTRY 370_mesa_ProgramUniformMatrix4dv(GLuint program, GLint, GLsizei, GLboolean, 371 const GLdouble *); 372void GLAPIENTRY 373_mesa_ProgramUniformMatrix2x3dv(GLuint program, GLint location, GLsizei count, 374 GLboolean transpose, const GLdouble *value); 375void GLAPIENTRY 376_mesa_ProgramUniformMatrix3x2dv(GLuint program, GLint location, GLsizei count, 377 GLboolean transpose, const GLdouble *value); 378void GLAPIENTRY 379_mesa_ProgramUniformMatrix2x4dv(GLuint program, GLint location, GLsizei count, 380 GLboolean transpose, const GLdouble *value); 381void GLAPIENTRY 382_mesa_ProgramUniformMatrix4x2dv(GLuint program, GLint location, GLsizei count, 383 GLboolean transpose, const GLdouble *value); 384void GLAPIENTRY 385_mesa_ProgramUniformMatrix3x4dv(GLuint program, GLint location, GLsizei count, 386 GLboolean transpose, const GLdouble *value); 387void GLAPIENTRY 388_mesa_ProgramUniformMatrix4x3dv(GLuint program, GLint location, GLsizei count, 389 GLboolean transpose, const GLdouble *value); 390 391void GLAPIENTRY 392_mesa_Uniform1i64ARB(GLint, GLint64); 393void GLAPIENTRY 394_mesa_Uniform2i64ARB(GLint, GLint64, GLint64); 395void GLAPIENTRY 396_mesa_Uniform3i64ARB(GLint, GLint64, GLint64, GLint64); 397void GLAPIENTRY 398_mesa_Uniform4i64ARB(GLint, GLint64, GLint64, GLint64, GLint64); 399 400void GLAPIENTRY 401_mesa_Uniform1i64vARB(GLint, GLsizei, const GLint64 *); 402void GLAPIENTRY 403_mesa_Uniform2i64vARB(GLint, GLsizei, const GLint64 *); 404void GLAPIENTRY 405_mesa_Uniform3i64vARB(GLint, GLsizei, const GLint64 *); 406void GLAPIENTRY 407_mesa_Uniform4i64vARB(GLint, GLsizei, const GLint64 *); 408 409void GLAPIENTRY 410_mesa_Uniform1ui64ARB(GLint, GLuint64); 411void GLAPIENTRY 412_mesa_Uniform2ui64ARB(GLint, GLuint64, GLuint64); 413void GLAPIENTRY 414_mesa_Uniform3ui64ARB(GLint, GLuint64, GLuint64, GLuint64); 415void GLAPIENTRY 416_mesa_Uniform4ui64ARB(GLint, GLuint64, GLuint64, GLuint64, GLuint64); 417 418void GLAPIENTRY 419_mesa_Uniform1ui64vARB(GLint, GLsizei, const GLuint64 *); 420void GLAPIENTRY 421_mesa_Uniform2ui64vARB(GLint, GLsizei, const GLuint64 *); 422void GLAPIENTRY 423_mesa_Uniform3ui64vARB(GLint, GLsizei, const GLuint64 *); 424void GLAPIENTRY 425_mesa_Uniform4ui64vARB(GLint, GLsizei, const GLuint64 *); 426 427void GLAPIENTRY 428_mesa_ProgramUniform1i64ARB(GLuint, GLint, GLint64); 429void GLAPIENTRY 430_mesa_ProgramUniform2i64ARB(GLuint, GLint, GLint64, GLint64); 431void GLAPIENTRY 432_mesa_ProgramUniform3i64ARB(GLuint, GLint, GLint64, GLint64, GLint64); 433void GLAPIENTRY 434_mesa_ProgramUniform4i64ARB(GLuint, GLint, GLint64, GLint64, GLint64, GLint64); 435 436void GLAPIENTRY 437_mesa_ProgramUniform1i64vARB(GLuint, GLint, GLsizei, const GLint64 *); 438void GLAPIENTRY 439_mesa_ProgramUniform2i64vARB(GLuint, GLint, GLsizei, const GLint64 *); 440void GLAPIENTRY 441_mesa_ProgramUniform3i64vARB(GLuint, GLint, GLsizei, const GLint64 *); 442void GLAPIENTRY 443_mesa_ProgramUniform4i64vARB(GLuint, GLint, GLsizei, const GLint64 *); 444 445void GLAPIENTRY 446_mesa_ProgramUniform1ui64ARB(GLuint, GLint, GLuint64); 447void GLAPIENTRY 448_mesa_ProgramUniform2ui64ARB(GLuint, GLint, GLuint64, GLuint64); 449void GLAPIENTRY 450_mesa_ProgramUniform3ui64ARB(GLuint, GLint, GLuint64, GLuint64, GLuint64); 451void GLAPIENTRY 452_mesa_ProgramUniform4ui64ARB(GLuint, GLint, GLuint64, GLuint64, GLuint64, GLuint64); 453 454void GLAPIENTRY 455_mesa_ProgramUniform1ui64vARB(GLuint, GLint, GLsizei, const GLuint64 *); 456void GLAPIENTRY 457_mesa_ProgramUniform2ui64vARB(GLuint, GLint, GLsizei, const GLuint64 *); 458void GLAPIENTRY 459_mesa_ProgramUniform3ui64vARB(GLuint, GLint, GLsizei, const GLuint64 *); 460void GLAPIENTRY 461_mesa_ProgramUniform4ui64vARB(GLuint, GLint, GLsizei, const GLuint64 *); 462 463void 464_mesa_uniform(GLint location, GLsizei count, const GLvoid *values, 465 struct gl_context *, struct gl_shader_program *, 466 enum glsl_base_type basicType, unsigned src_components); 467 468void 469_mesa_uniform_matrix(GLint location, GLsizei count, 470 GLboolean transpose, const void *values, 471 struct gl_context *, struct gl_shader_program *, 472 GLuint cols, GLuint rows, enum glsl_base_type basicType); 473 474void 475_mesa_uniform_handle(GLint location, GLsizei count, const GLvoid *values, 476 struct gl_context *, struct gl_shader_program *); 477 478void 479_mesa_get_uniform(struct gl_context *ctx, GLuint program, GLint location, 480 GLsizei bufSize, enum glsl_base_type returnType, 481 GLvoid *paramsOut); 482 483extern void 484_mesa_uniform_attach_driver_storage(struct gl_uniform_storage *, 485 unsigned element_stride, 486 unsigned vector_stride, 487 enum gl_uniform_driver_format format, 488 void *data); 489 490extern void 491_mesa_uniform_detach_all_driver_storage(struct gl_uniform_storage *uni); 492 493extern void 494_mesa_propagate_uniforms_to_driver_storage(struct gl_uniform_storage *uni, 495 unsigned array_index, 496 unsigned count); 497 498extern void 499_mesa_update_shader_textures_used(struct gl_shader_program *shProg, 500 struct gl_program *prog); 501 502extern bool 503_mesa_sampler_uniforms_are_valid(const struct gl_shader_program *shProg, 504 char *errMsg, size_t errMsgLength); 505extern bool 506_mesa_sampler_uniforms_pipeline_are_valid(struct gl_pipeline_object *); 507 508extern void 509_mesa_flush_vertices_for_uniforms(struct gl_context *ctx, 510 const struct gl_uniform_storage *uni); 511 512struct gl_builtin_uniform_element { 513 const char *field; 514 gl_state_index16 tokens[STATE_LENGTH]; 515 int swizzle; 516}; 517 518struct gl_builtin_uniform_desc { 519 const char *name; 520 const struct gl_builtin_uniform_element *elements; 521 unsigned int num_elements; 522}; 523 524#ifdef __cplusplus 525} 526#endif 527 528 529#endif /* UNIFORMS_H */ 530