3 * Texture images manipulation functions.
7 * Mesa 3-D graphics library
9 * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
11 * Permission is hereby granted, free of charge, to any person obtaining a
12 * copy of this software and associated documentation files (the "Software"),
13 * to deal in the Software without restriction, including without limitation
14 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
15 * and/or sell copies of the Software, and to permit persons to whom the
16 * Software is furnished to do so, subject to the following conditions:
18 * The above copyright notice and this permission notice shall be included
19 * in all copies or substantial portions of the Software.
21 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
22 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
24 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
25 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
26 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
27 * OTHER DEALINGS IN THE SOFTWARE.
42 /** Is the given value one of the 6 cube faces? */
43 static inline GLboolean
44 _mesa_is_cube_face(GLenum target
)
46 return (target
>= GL_TEXTURE_CUBE_MAP_POSITIVE_X
&&
47 target
<= GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
);
52 * Return number of faces for a texture target. This will be 6 for
53 * cube maps and 1 otherwise.
54 * NOTE: this function is not used for cube map arrays which operate
55 * more like 2D arrays than cube maps.
58 _mesa_num_tex_faces(GLenum target
)
61 case GL_TEXTURE_CUBE_MAP
:
62 case GL_PROXY_TEXTURE_CUBE_MAP
:
71 * If the target is GL_TEXTURE_CUBE_MAP, return one of the
72 * GL_TEXTURE_CUBE_MAP_POSITIVE/NEGATIVE_X/Y/Z targets corresponding to
74 * Else, return target as-is.
77 _mesa_cube_face_target(GLenum target
, unsigned face
)
79 if (target
== GL_TEXTURE_CUBE_MAP
) {
81 return GL_TEXTURE_CUBE_MAP_POSITIVE_X
+ face
;
90 * For cube map faces, return a face index in [0,5].
91 * For other targets return 0;
94 _mesa_tex_target_to_face(GLenum target
)
96 if (_mesa_is_cube_face(target
))
97 return (GLuint
) target
- (GLuint
) GL_TEXTURE_CUBE_MAP_POSITIVE_X
;
103 /** Are any of the dimensions of given texture equal to zero? */
104 static inline GLboolean
105 _mesa_is_zero_size_texture(const struct gl_texture_image
*texImage
)
107 return (texImage
->Width
== 0 ||
108 texImage
->Height
== 0 ||
109 texImage
->Depth
== 0);
112 /** \name Internal functions */
116 _mesa_is_proxy_texture(GLenum target
);
119 _mesa_is_array_texture(GLenum target
);
123 _mesa_delete_texture_image( struct gl_context
*ctx
,
124 struct gl_texture_image
*teximage
);
128 _mesa_init_teximage_fields(struct gl_context
*ctx
,
129 struct gl_texture_image
*img
,
130 GLsizei width
, GLsizei height
, GLsizei depth
,
131 GLint border
, GLenum internalFormat
,
134 _mesa_init_teximage_fields_ms(struct gl_context
*ctx
,
135 struct gl_texture_image
*img
,
136 GLsizei width
, GLsizei height
, GLsizei depth
,
137 GLint border
, GLenum internalFormat
,
140 GLboolean fixedSampleLocations
);
144 _mesa_choose_texture_format(struct gl_context
*ctx
,
145 struct gl_texture_object
*texObj
,
146 GLenum target
, GLint level
,
147 GLenum internalFormat
, GLenum format
, GLenum type
);
150 _mesa_update_fbo_texture(struct gl_context
*ctx
,
151 struct gl_texture_object
*texObj
,
152 GLuint face
, GLuint level
);
155 _mesa_clear_texture_image(struct gl_context
*ctx
,
156 struct gl_texture_image
*texImage
);
159 extern struct gl_texture_image
*
160 _mesa_select_tex_image(const struct gl_texture_object
*texObj
,
161 GLenum target
, GLint level
);
164 extern struct gl_texture_image
*
165 _mesa_get_tex_image(struct gl_context
*ctx
, struct gl_texture_object
*texObj
,
166 GLenum target
, GLint level
);
169 _mesa_get_texbuffer_format(const struct gl_context
*ctx
, GLenum internalFormat
);
172 * Return the base-level texture image for the given texture object.
174 static inline const struct gl_texture_image
*
175 _mesa_base_tex_image(const struct gl_texture_object
*texObj
)
177 return texObj
->Image
[0][texObj
->BaseLevel
];
182 _mesa_max_texture_levels(const struct gl_context
*ctx
, GLenum target
);
186 _mesa_test_proxy_teximage(struct gl_context
*ctx
, GLenum target
,
187 GLuint numLevels
, GLint level
,
188 mesa_format format
, GLuint numSamples
,
189 GLint width
, GLint height
, GLint depth
);
192 _mesa_target_can_be_compressed(const struct gl_context
*ctx
, GLenum target
,
193 GLenum intFormat
, GLenum
*error
);
196 _mesa_get_texture_dimensions(GLenum target
);
199 _mesa_tex_target_is_layered(GLenum target
);
202 _mesa_get_texture_layers(const struct gl_texture_object
*texObj
, GLint level
);
205 _mesa_get_tex_max_num_levels(GLenum target
, GLsizei width
, GLsizei height
,
209 _mesa_legal_texture_dimensions(struct gl_context
*ctx
, GLenum target
,
210 GLint level
, GLint width
, GLint height
,
211 GLint depth
, GLint border
);
214 _mesa_validate_texbuffer_format(const struct gl_context
*ctx
,
215 GLenum internalFormat
);
219 _mesa_legal_texture_base_format_for_target(struct gl_context
*ctx
,
221 GLenum internalFormat
);
224 _mesa_format_no_online_compression(GLenum format
);
227 _mesa_is_renderable_texture_format(const struct gl_context
*ctx
,
228 GLenum internalformat
);
231 _mesa_texture_sub_image(struct gl_context
*ctx
, GLuint dims
,
232 struct gl_texture_object
*texObj
,
233 struct gl_texture_image
*texImage
,
234 GLenum target
, GLint level
,
235 GLint xoffset
, GLint yoffset
, GLint zoffset
,
236 GLsizei width
, GLsizei height
, GLsizei depth
,
237 GLenum format
, GLenum type
, const GLvoid
*pixels
,
241 _mesa_texture_storage_ms_memory(struct gl_context
*ctx
, GLuint dims
,
242 struct gl_texture_object
*texObj
,
243 struct gl_memory_object
*memObj
,
244 GLenum target
, GLsizei samples
,
245 GLenum internalFormat
, GLsizei width
,
246 GLsizei height
, GLsizei depth
,
247 GLboolean fixedSampleLocations
,
248 GLuint64 offset
, const char* func
);
251 _mesa_is_cube_map_texture(GLenum target
);
256 /** \name API entry point functions */
259 extern void GLAPIENTRY
260 _mesa_TexImage1D( GLenum target
, GLint level
, GLint internalformat
,
261 GLsizei width
, GLint border
,
262 GLenum format
, GLenum type
, const GLvoid
*pixels
);
264 extern void GLAPIENTRY
265 _mesa_TextureImage1DEXT( GLuint texture
, GLenum target
, GLint level
,
266 GLint internalformat
, GLsizei width
, GLint border
,
267 GLenum format
, GLenum type
, const GLvoid
*pixels
);
269 extern void GLAPIENTRY
270 _mesa_MultiTexImage1DEXT( GLenum texture
, GLenum target
, GLint level
,
271 GLint internalformat
, GLsizei width
, GLint border
,
272 GLenum format
, GLenum type
, const GLvoid
*pixels
);
274 extern void GLAPIENTRY
275 _mesa_TexImage2D( GLenum target
, GLint level
, GLint internalformat
,
276 GLsizei width
, GLsizei height
, GLint border
,
277 GLenum format
, GLenum type
, const GLvoid
*pixels
);
279 extern void GLAPIENTRY
280 _mesa_TextureImage2DEXT( GLuint texture
, GLenum target
, GLint level
,
281 GLint internalformat
, GLsizei width
, GLsizei height
,
282 GLint border
, GLenum format
, GLenum type
,
283 const GLvoid
*pixels
);
285 extern void GLAPIENTRY
286 _mesa_MultiTexImage2DEXT(GLenum texture
, GLenum target
, GLint level
,
287 GLint internalFormat
, GLsizei width
, GLsizei height
,
288 GLint border
, GLenum format
, GLenum type
,
289 const GLvoid
*pixels
);
291 extern void GLAPIENTRY
292 _mesa_TexImage3D( GLenum target
, GLint level
, GLint internalformat
,
293 GLsizei width
, GLsizei height
, GLsizei depth
, GLint border
,
294 GLenum format
, GLenum type
, const GLvoid
*pixels
);
296 extern void GLAPIENTRY
297 _mesa_TextureImage3DEXT( GLuint texture
, GLenum target
, GLint level
,
298 GLint internalformat
, GLsizei width
, GLsizei height
,
299 GLsizei depth
, GLint border
, GLenum format
,
300 GLenum type
, const GLvoid
*pixels
);
302 extern void GLAPIENTRY
303 _mesa_TexImage3DEXT( GLenum target
, GLint level
, GLenum internalformat
,
304 GLsizei width
, GLsizei height
, GLsizei depth
,
305 GLint border
, GLenum format
, GLenum type
,
306 const GLvoid
*pixels
);
308 extern void GLAPIENTRY
309 _mesa_MultiTexImage3DEXT(GLenum texture
, GLenum target
, GLint level
,
310 GLint internalFormat
, GLsizei width
, GLsizei height
,
311 GLsizei depth
, GLint border
, GLenum format
, GLenum type
,
312 const GLvoid
*pixels
);
314 extern void GLAPIENTRY
315 _mesa_TexImage1D_no_error(GLenum target
, GLint level
, GLint internalformat
,
316 GLsizei width
, GLint border
,
317 GLenum format
, GLenum type
, const GLvoid
*pixels
);
319 extern void GLAPIENTRY
320 _mesa_TexImage2D_no_error(GLenum target
, GLint level
, GLint internalformat
,
321 GLsizei width
, GLsizei height
, GLint border
,
322 GLenum format
, GLenum type
, const GLvoid
*pixels
);
324 extern void GLAPIENTRY
325 _mesa_TexImage3D_no_error(GLenum target
, GLint level
, GLint internalformat
,
326 GLsizei width
, GLsizei height
, GLsizei depth
,
327 GLint border
, GLenum format
, GLenum type
,
328 const GLvoid
*pixels
);
330 extern void GLAPIENTRY
331 _mesa_EGLImageTargetTexture2DOES( GLenum target
, GLeglImageOES image
);
334 _mesa_TexSubImage1D_no_error(GLenum target
, GLint level
, GLint xoffset
,
336 GLenum format
, GLenum type
,
337 const GLvoid
*pixels
);
339 extern void GLAPIENTRY
340 _mesa_TexSubImage1D( GLenum target
, GLint level
, GLint xoffset
,
342 GLenum format
, GLenum type
,
343 const GLvoid
*pixels
);
346 _mesa_TexSubImage2D_no_error(GLenum target
, GLint level
,
347 GLint xoffset
, GLint yoffset
,
348 GLsizei width
, GLsizei height
,
349 GLenum format
, GLenum type
,
350 const GLvoid
*pixels
);
352 extern void GLAPIENTRY
353 _mesa_TexSubImage2D( GLenum target
, GLint level
,
354 GLint xoffset
, GLint yoffset
,
355 GLsizei width
, GLsizei height
,
356 GLenum format
, GLenum type
,
357 const GLvoid
*pixels
);
360 _mesa_TexSubImage3D_no_error(GLenum target
, GLint level
,
361 GLint xoffset
, GLint yoffset
, GLint zoffset
,
362 GLsizei width
, GLsizei height
, GLsizei depth
,
363 GLenum format
, GLenum type
,
364 const GLvoid
*pixels
);
366 extern void GLAPIENTRY
367 _mesa_TexSubImage3D( GLenum target
, GLint level
,
368 GLint xoffset
, GLint yoffset
, GLint zoffset
,
369 GLsizei width
, GLsizei height
, GLsizei depth
,
370 GLenum format
, GLenum type
,
371 const GLvoid
*pixels
);
374 _mesa_TextureSubImage1D_no_error(GLuint texture
, GLint level
, GLint xoffset
,
375 GLsizei width
, GLenum format
, GLenum type
,
376 const GLvoid
*pixels
);
378 extern void GLAPIENTRY
379 _mesa_TextureSubImage1D(GLuint texture
, GLint level
, GLint xoffset
,
381 GLenum format
, GLenum type
,
382 const GLvoid
*pixels
);
384 extern void GLAPIENTRY
385 _mesa_TextureSubImage1DEXT(GLuint texture
, GLenum target
, GLint level
,
386 GLint xoffset
, GLsizei width
,
387 GLenum format
, GLenum type
,
388 const GLvoid
*pixels
);
391 _mesa_TextureSubImage2DEXT(GLuint texture
, GLenum target
, GLint level
,
392 GLint xoffset
, GLint yoffset
, GLsizei width
,
393 GLsizei height
, GLenum format
, GLenum type
,
394 const GLvoid
*pixels
);
397 _mesa_TextureSubImage2D_no_error(GLuint texture
, GLint level
, GLint xoffset
,
398 GLint yoffset
, GLsizei width
, GLsizei height
,
399 GLenum format
, GLenum type
,
400 const GLvoid
*pixels
);
402 extern void GLAPIENTRY
403 _mesa_TextureSubImage2D(GLuint texture
, GLint level
,
404 GLint xoffset
, GLint yoffset
,
405 GLsizei width
, GLsizei height
,
406 GLenum format
, GLenum type
,
407 const GLvoid
*pixels
);
410 _mesa_TextureSubImage3D_no_error(GLuint texture
, GLint level
, GLint xoffset
,
411 GLint yoffset
, GLint zoffset
, GLsizei width
,
412 GLsizei height
, GLsizei depth
, GLenum format
,
413 GLenum type
, const GLvoid
*pixels
);
415 extern void GLAPIENTRY
416 _mesa_TextureSubImage3D(GLuint texture
, GLint level
,
417 GLint xoffset
, GLint yoffset
, GLint zoffset
,
418 GLsizei width
, GLsizei height
, GLsizei depth
,
419 GLenum format
, GLenum type
,
420 const GLvoid
*pixels
);
422 extern void GLAPIENTRY
423 _mesa_TextureSubImage3DEXT(GLuint texture
, GLenum target
,
424 GLint level
, GLint xoffset
, GLint yoffset
,
425 GLint zoffset
, GLsizei width
, GLsizei height
,
426 GLsizei depth
, GLenum format
, GLenum type
,
427 const GLvoid
*pixels
);
429 extern void GLAPIENTRY
430 _mesa_CopyTexImage1D(GLenum target
, GLint level
, GLenum internalformat
,
431 GLint x
, GLint y
, GLsizei width
, GLint border
);
434 extern void GLAPIENTRY
435 _mesa_CopyTexImage2D( GLenum target
, GLint level
,
436 GLenum internalformat
, GLint x
, GLint y
,
437 GLsizei width
, GLsizei height
, GLint border
);
439 extern void GLAPIENTRY
440 _mesa_CopyTextureImage1DEXT( GLuint texture
, GLenum target
, GLint level
,
441 GLenum internalformat
, GLint x
, GLint y
,
442 GLsizei width
, GLint border
);
444 extern void GLAPIENTRY
445 _mesa_CopyTextureImage2DEXT( GLuint texture
, GLenum target
, GLint level
,
446 GLenum internalformat
, GLint x
, GLint y
,
447 GLsizei width
, GLsizei height
, GLint border
);
449 extern void GLAPIENTRY
450 _mesa_CopyTexImage1D_no_error(GLenum target
, GLint level
, GLenum internalformat
,
451 GLint x
, GLint y
, GLsizei width
, GLint border
);
454 extern void GLAPIENTRY
455 _mesa_CopyTexImage2D_no_error(GLenum target
, GLint level
, GLenum internalformat
,
456 GLint x
, GLint y
, GLsizei width
, GLsizei height
,
460 extern void GLAPIENTRY
461 _mesa_CopyTexSubImage1D( GLenum target
, GLint level
, GLint xoffset
,
462 GLint x
, GLint y
, GLsizei width
);
465 extern void GLAPIENTRY
466 _mesa_CopyTexSubImage2D( GLenum target
, GLint level
,
467 GLint xoffset
, GLint yoffset
,
468 GLint x
, GLint y
, GLsizei width
, GLsizei height
);
471 extern void GLAPIENTRY
472 _mesa_CopyTexSubImage3D( GLenum target
, GLint level
,
473 GLint xoffset
, GLint yoffset
, GLint zoffset
,
474 GLint x
, GLint y
, GLsizei width
, GLsizei height
);
476 extern void GLAPIENTRY
477 _mesa_CopyTextureSubImage1D(GLuint texture
, GLint level
,
478 GLint xoffset
, GLint x
, GLint y
, GLsizei width
);
480 extern void GLAPIENTRY
481 _mesa_CopyTextureSubImage1DEXT(GLuint texture
, GLenum target
,
482 GLint level
, GLint xoffset
, GLint x
, GLint y
,
485 extern void GLAPIENTRY
486 _mesa_CopyTextureSubImage2D(GLuint texture
, GLint level
,
487 GLint xoffset
, GLint yoffset
,
489 GLsizei width
, GLsizei height
);
491 extern void GLAPIENTRY
492 _mesa_CopyTextureSubImage2DEXT(GLuint texture
, GLenum target
, GLint level
,
493 GLint xoffset
, GLint yoffset
,
495 GLsizei width
, GLsizei height
);
497 extern void GLAPIENTRY
498 _mesa_CopyTextureSubImage3D(GLuint texture
, GLint level
,
499 GLint xoffset
, GLint yoffset
, GLint zoffset
,
501 GLsizei width
, GLsizei height
);
503 extern void GLAPIENTRY
504 _mesa_CopyTextureSubImage3DEXT(GLuint texture
, GLenum target
, GLint level
,
505 GLint xoffset
, GLint yoffset
, GLint zoffset
,
507 GLsizei width
, GLsizei height
);
509 extern void GLAPIENTRY
510 _mesa_CopyTexSubImage1D_no_error(GLenum target
, GLint level
, GLint xoffset
,
511 GLint x
, GLint y
, GLsizei width
);
513 extern void GLAPIENTRY
514 _mesa_CopyTexSubImage2D_no_error(GLenum target
, GLint level
, GLint xoffset
,
515 GLint yoffset
, GLint x
, GLint y
, GLsizei width
,
518 extern void GLAPIENTRY
519 _mesa_CopyTexSubImage3D_no_error(GLenum target
, GLint level
, GLint xoffset
,
520 GLint yoffset
, GLint zoffset
, GLint x
, GLint y
,
521 GLsizei width
, GLsizei height
);
523 extern void GLAPIENTRY
524 _mesa_CopyTextureSubImage1D_no_error(GLuint texture
, GLint level
, GLint xoffset
,
525 GLint x
, GLint y
, GLsizei width
);
527 extern void GLAPIENTRY
528 _mesa_CopyTextureSubImage2D_no_error(GLuint texture
, GLint level
, GLint xoffset
,
529 GLint yoffset
, GLint x
, GLint y
,
530 GLsizei width
, GLsizei height
);
532 extern void GLAPIENTRY
533 _mesa_CopyTextureSubImage3D_no_error(GLuint texture
, GLint level
, GLint xoffset
,
534 GLint yoffset
, GLint zoffset
, GLint x
,
535 GLint y
, GLsizei width
, GLsizei height
);
537 extern void GLAPIENTRY
538 _mesa_ClearTexSubImage( GLuint texture
, GLint level
,
539 GLint xoffset
, GLint yoffset
, GLint zoffset
,
540 GLsizei width
, GLsizei height
, GLsizei depth
,
541 GLenum format
, GLenum type
, const void *data
);
543 extern void GLAPIENTRY
544 _mesa_ClearTexImage( GLuint texture
, GLint level
,
545 GLenum format
, GLenum type
, const void *data
);
547 extern void GLAPIENTRY
548 _mesa_CompressedTexImage1D(GLenum target
, GLint level
,
549 GLenum internalformat
, GLsizei width
,
550 GLint border
, GLsizei imageSize
,
553 extern void GLAPIENTRY
554 _mesa_CompressedTexImage2D(GLenum target
, GLint level
,
555 GLenum internalformat
, GLsizei width
,
556 GLsizei height
, GLint border
, GLsizei imageSize
,
559 extern void GLAPIENTRY
560 _mesa_CompressedTexImage3D(GLenum target
, GLint level
,
561 GLenum internalformat
, GLsizei width
,
562 GLsizei height
, GLsizei depth
, GLint border
,
563 GLsizei imageSize
, const GLvoid
*data
);
565 extern void GLAPIENTRY
566 _mesa_CompressedTexImage1D_no_error(GLenum target
, GLint level
,
567 GLenum internalformat
, GLsizei width
,
568 GLint border
, GLsizei imageSize
,
571 extern void GLAPIENTRY
572 _mesa_CompressedTexImage2D_no_error(GLenum target
, GLint level
,
573 GLenum internalformat
, GLsizei width
,
574 GLsizei height
, GLint border
,
575 GLsizei imageSize
, const GLvoid
*data
);
577 extern void GLAPIENTRY
578 _mesa_CompressedTexImage3D_no_error(GLenum target
, GLint level
,
579 GLenum internalformat
, GLsizei width
,
580 GLsizei height
, GLsizei depth
, GLint border
,
581 GLsizei imageSize
, const GLvoid
*data
);
584 extern void GLAPIENTRY
585 _mesa_CompressedTexSubImage1D_no_error(GLenum target
, GLint level
,
586 GLint xoffset
, GLsizei width
,
587 GLenum format
, GLsizei imageSize
,
589 extern void GLAPIENTRY
590 _mesa_CompressedTexSubImage1D(GLenum target
, GLint level
, GLint xoffset
,
591 GLsizei width
, GLenum format
,
592 GLsizei imageSize
, const GLvoid
*data
);
594 extern void GLAPIENTRY
595 _mesa_CompressedTextureSubImage1D_no_error(GLuint texture
, GLint level
,
596 GLint xoffset
, GLsizei width
,
597 GLenum format
, GLsizei imageSize
,
599 extern void GLAPIENTRY
600 _mesa_CompressedTextureSubImage1D(GLuint texture
, GLint level
, GLint xoffset
,
601 GLsizei width
, GLenum format
,
602 GLsizei imageSize
, const GLvoid
*data
);
605 _mesa_CompressedTextureSubImage2DEXT(GLuint texture
, GLenum target
,
606 GLint level
, GLint xoffset
,
607 GLint yoffset
, GLsizei width
,
608 GLsizei height
, GLenum format
,
609 GLsizei imageSize
, const GLvoid
*data
);
611 extern void GLAPIENTRY
612 _mesa_CompressedTexSubImage2D_no_error(GLenum target
, GLint level
,
613 GLint xoffset
, GLint yoffset
,
614 GLsizei width
, GLsizei height
,
615 GLenum format
, GLsizei imageSize
,
617 extern void GLAPIENTRY
618 _mesa_CompressedTexSubImage2D(GLenum target
, GLint level
, GLint xoffset
,
619 GLint yoffset
, GLsizei width
, GLsizei height
,
620 GLenum format
, GLsizei imageSize
,
623 extern void GLAPIENTRY
624 _mesa_CompressedTextureSubImage2D_no_error(GLuint texture
, GLint level
,
625 GLint xoffset
, GLint yoffset
,
626 GLsizei width
, GLsizei height
,
627 GLenum format
, GLsizei imageSize
,
629 extern void GLAPIENTRY
630 _mesa_CompressedTextureSubImage2D(GLuint texture
, GLint level
, GLint xoffset
,
632 GLsizei width
, GLsizei height
,
633 GLenum format
, GLsizei imageSize
,
636 extern void GLAPIENTRY
637 _mesa_CompressedTexSubImage3D_no_error(GLenum target
, GLint level
,
638 GLint xoffset
, GLint yoffset
,
639 GLint zoffset
, GLsizei width
,
640 GLsizei height
, GLsizei depth
,
641 GLenum format
, GLsizei imageSize
,
643 extern void GLAPIENTRY
644 _mesa_CompressedTexSubImage3D(GLenum target
, GLint level
, GLint xoffset
,
645 GLint yoffset
, GLint zoffset
, GLsizei width
,
646 GLsizei height
, GLsizei depth
, GLenum format
,
647 GLsizei imageSize
, const GLvoid
*data
);
649 extern void GLAPIENTRY
650 _mesa_CompressedTextureSubImage3D_no_error(GLuint texture
, GLint level
,
651 GLint xoffset
, GLint yoffset
,
652 GLint zoffset
, GLsizei width
,
653 GLsizei height
, GLsizei depth
,
654 GLenum format
, GLsizei imageSize
,
656 extern void GLAPIENTRY
657 _mesa_CompressedTextureSubImage3D(GLuint texture
, GLint level
, GLint xoffset
,
658 GLint yoffset
, GLint zoffset
,
659 GLsizei width
, GLsizei height
,
661 GLenum format
, GLsizei imageSize
,
664 extern void GLAPIENTRY
665 _mesa_TexBuffer(GLenum target
, GLenum internalFormat
, GLuint buffer
);
667 extern void GLAPIENTRY
668 _mesa_TexBufferRange(GLenum target
, GLenum internalFormat
, GLuint buffer
,
669 GLintptr offset
, GLsizeiptr size
);
671 extern void GLAPIENTRY
672 _mesa_TextureBuffer(GLuint texture
, GLenum internalFormat
, GLuint buffer
);
674 extern void GLAPIENTRY
675 _mesa_TextureBufferRange(GLuint texture
, GLenum internalFormat
, GLuint buffer
,
676 GLintptr offset
, GLsizeiptr size
);
679 extern void GLAPIENTRY
680 _mesa_TexImage2DMultisample(GLenum target
, GLsizei samples
,
681 GLenum internalformat
, GLsizei width
,
682 GLsizei height
, GLboolean fixedsamplelocations
);
684 extern void GLAPIENTRY
685 _mesa_TexImage3DMultisample(GLenum target
, GLsizei samples
,
686 GLenum internalformat
, GLsizei width
,
687 GLsizei height
, GLsizei depth
,
688 GLboolean fixedsamplelocations
);
690 extern void GLAPIENTRY
691 _mesa_TexStorage2DMultisample(GLenum target
, GLsizei samples
,
692 GLenum internalformat
, GLsizei width
,
693 GLsizei height
, GLboolean fixedsamplelocations
);
695 extern void GLAPIENTRY
696 _mesa_TexStorage3DMultisample(GLenum target
, GLsizei samples
,
697 GLenum internalformat
, GLsizei width
,
698 GLsizei height
, GLsizei depth
,
699 GLboolean fixedsamplelocations
);
702 _mesa_TextureStorage2DMultisample(GLuint texture
, GLsizei samples
,
703 GLenum internalformat
, GLsizei width
,
705 GLboolean fixedsamplelocations
);
708 _mesa_TextureStorage3DMultisample(GLuint texture
, GLsizei samples
,
709 GLenum internalformat
, GLsizei width
,
710 GLsizei height
, GLsizei depth
,
711 GLboolean fixedsamplelocations
);