Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(738)

Side by Side Diff: third_party/khronos/GLES2/gl2ext.h

Issue 8772033: Adds support for the GL_ANGLE_texture_usage and GL_EXT_texture_storage (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/command_buffer/service/texture_manager_unittest.cc ('k') | ui/gfx/gl/generate_bindings.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef __gl2ext_h_ 1 #ifndef __gl2ext_h_
2 #define __gl2ext_h_ 2 #define __gl2ext_h_
3 3
4 /* $Revision: 15049 $ on $Date:: 2011-07-06 17:28:16 -0700 #$ */ 4 /* $Revision: 15049 $ on $Date:: 2011-07-06 17:28:16 -0700 #$ */
5 5
6 #ifdef __cplusplus 6 #ifdef __cplusplus
7 extern "C" { 7 extern "C" {
8 #endif 8 #endif
9 9
10 /* 10 /*
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 #define GL_RENDERBUFFER_SAMPLES_ANGLE 0x8CAB 205 #define GL_RENDERBUFFER_SAMPLES_ANGLE 0x8CAB
206 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56 206 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_ANGLE 0x8D56
207 #define GL_MAX_SAMPLES_ANGLE 0x8D57 207 #define GL_MAX_SAMPLES_ANGLE 0x8D57
208 #endif 208 #endif
209 209
210 /* GL_ANGLE_pack_reverse_row_order */ 210 /* GL_ANGLE_pack_reverse_row_order */
211 #ifndef GL_ANGLE_pack_reverse_row_order 211 #ifndef GL_ANGLE_pack_reverse_row_order
212 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4 212 #define GL_PACK_REVERSE_ROW_ORDER_ANGLE 0x93A4
213 #endif 213 #endif
214 214
215 /* GL_ANGLE_texture_usage */
216 #ifndef GL_ANGLE_texture_usage
217 #define GL_TEXTURE_USAGE_ANGLE 0x93A2
218 #define GL_FRAMEBUFFER_ATTACHMENT_ANGLE 0x93A3
219 #endif
220
215 /*------------------------------------------------------------------------* 221 /*------------------------------------------------------------------------*
216 * APPLE extension tokens 222 * APPLE extension tokens
217 *------------------------------------------------------------------------*/ 223 *------------------------------------------------------------------------*/
218 224
219 /* GL_APPLE_rgb_422 */ 225 /* GL_APPLE_rgb_422 */
220 #ifndef GL_APPLE_rgb_422 226 #ifndef GL_APPLE_rgb_422
221 #define GL_RGB_422_APPLE 0x8A1F 227 #define GL_RGB_422_APPLE 0x8A1F
222 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA 228 #define GL_UNSIGNED_SHORT_8_8_APPLE 0x85BA
223 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB 229 #define GL_UNSIGNED_SHORT_8_8_REV_APPLE 0x85BB
224 #endif 230 #endif
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1 314 #define GL_COMPRESSED_RGBA_S3TC_DXT1_EXT 0x83F1
309 #endif 315 #endif
310 316
311 /* GL_EXT_unpack_subimage */ 317 /* GL_EXT_unpack_subimage */
312 #ifndef GL_EXT_unpack_subimage 318 #ifndef GL_EXT_unpack_subimage
313 #define GL_UNPACK_ROW_LENGTH 0x0CF2 319 #define GL_UNPACK_ROW_LENGTH 0x0CF2
314 #define GL_UNPACK_SKIP_ROWS 0x0CF3 320 #define GL_UNPACK_SKIP_ROWS 0x0CF3
315 #define GL_UNPACK_SKIP_PIXELS 0x0CF4 321 #define GL_UNPACK_SKIP_PIXELS 0x0CF4
316 #endif 322 #endif
317 323
324 /* GL_EXT_texture_storage */
325 #ifndef GL_EXT_texture_storage
326 #define GL_TEXTURE_IMMUTABLE_FORMAT_EXT 0x912F
327 #define GL_ALPHA8_EXT 0x803C
328 #define GL_LUMINANCE8_EXT 0x8040
329 #define GL_LUMINANCE8_ALPHA8_EXT 0x8045
330 /* OES_texture_float dependent internal formats */
331 #define GL_RGBA32F_EXT 0x8814 /* reuse tokens from ARB_texture_float */
332 #define GL_RGB32F_EXT 0x8815
333 #define GL_ALPHA32F_EXT 0x8816
334 #define GL_LUMINANCE32F_EXT 0x8818
335 #define GL_LUMINANCE_ALPHA32F_EXT 0x8819
336 /* OES_texture_half_float dependent internal formats */
337 #define GL_RGBA16F_EXT 0x881A /* reuse tokens from ARB_texture_float */
338 #define GL_RGB16F_EXT 0x881B
339 #define GL_ALPHA16F_EXT 0x881C
340 #define GL_LUMINANCE16F_EXT 0x881E
341 #define GL_LUMINANCE_ALPHA16F_EXT 0x881F
342 /* EXT_texture_type_2_10_10_10_REV dependent internal formats */
343 #define GL_RGB10_A2_EXT 0x8059 /* reuse tokens from EXT_texture */
344 #define GL_RGB10_EXT 0x8052
345 /* EXT_texture_format_BGRA8888 dependent internal formats */
346 #define GL_BGRA8_EXT 0x93A1
347 #endif
348
318 /*------------------------------------------------------------------------* 349 /*------------------------------------------------------------------------*
319 * DMP extension tokens 350 * DMP extension tokens
320 *------------------------------------------------------------------------*/ 351 *------------------------------------------------------------------------*/
321 352
322 /* GL_DMP_shader_binary */ 353 /* GL_DMP_shader_binary */
323 #ifndef GL_DMP_shader_binary 354 #ifndef GL_DMP_shader_binary
324 #define GL_SHADER_BINARY_DMP 0x9250 355 #define GL_SHADER_BINARY_DMP 0x9250
325 #endif 356 #endif
326 357
327 /*------------------------------------------------------------------------* 358 /*------------------------------------------------------------------------*
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target , GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); 824 GL_APICALL void GL_APIENTRY glRenderbufferStorageMultisampleANGLE (GLenum target , GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
794 #endif 825 #endif
795 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height); 826 typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC) (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
796 #endif 827 #endif
797 828
798 /* GL_ANGLE_pack_reverse_row_order */ 829 /* GL_ANGLE_pack_reverse_row_order */
799 #ifndef GL_ANGLE_pack_reverse_row_order 830 #ifndef GL_ANGLE_pack_reverse_row_order
800 #define GL_ANGLE_pack_reverse_row_order 1 831 #define GL_ANGLE_pack_reverse_row_order 1
801 #endif 832 #endif
802 833
834 /* GL_ANGLE_texture_usage */
835 #ifndef GL_ANGLE_texture_usage
836 #define GL_ANGLE_texture_usage 1
837 #endif
838
803 /*------------------------------------------------------------------------* 839 /*------------------------------------------------------------------------*
804 * APPLE extension functions 840 * APPLE extension functions
805 *------------------------------------------------------------------------*/ 841 *------------------------------------------------------------------------*/
806 842
807 /* GL_APPLE_rgb_422 */ 843 /* GL_APPLE_rgb_422 */
808 #ifndef GL_APPLE_rgb_422 844 #ifndef GL_APPLE_rgb_422
809 #define GL_APPLE_rgb_422 1 845 #define GL_APPLE_rgb_422 1
810 #endif 846 #endif
811 847
812 /* GL_APPLE_framebuffer_multisample */ 848 /* GL_APPLE_framebuffer_multisample */
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
900 /* GL_EXT_texture_compression_dxt1 */ 936 /* GL_EXT_texture_compression_dxt1 */
901 #ifndef GL_EXT_texture_compression_dxt1 937 #ifndef GL_EXT_texture_compression_dxt1
902 #define GL_EXT_texture_compression_dxt1 1 938 #define GL_EXT_texture_compression_dxt1 1
903 #endif 939 #endif
904 940
905 /* GL_EXT_unpack_subimage */ 941 /* GL_EXT_unpack_subimage */
906 #ifndef GL_EXT_unpack_subimage 942 #ifndef GL_EXT_unpack_subimage
907 #define GL_EXT_unpack_subimage 1 943 #define GL_EXT_unpack_subimage 1
908 #endif 944 #endif
909 945
946 /* GL_EXT_texture_storage */
947 #ifndef GL_EXT_texture_storage
948 #define GL_EXT_texture_storage 1
949 #ifdef GL_GLEXT_PROTOTYPES
950 GL_APICALL void GL_APIENTRY glTexStorage2DEXT (GLenum target, GLsizei levels, GL enum internalformat, GLsizei width, GLsizei height);
951 #endif /* GL_GLEXT_PROTOTYPES */
952 typedef void (GL_APIENTRYP PFNGLTEXSTORAGE2DEXT) (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height);
953 #endif
954
910 /*------------------------------------------------------------------------* 955 /*------------------------------------------------------------------------*
911 * DMP extension functions 956 * DMP extension functions
912 *------------------------------------------------------------------------*/ 957 *------------------------------------------------------------------------*/
913 958
914 /* GL_DMP_shader_binary */ 959 /* GL_DMP_shader_binary */
915 #ifndef GL_DMP_shader_binary 960 #ifndef GL_DMP_shader_binary
916 #define GL_DMP_shader_binary 1 961 #define GL_DMP_shader_binary 1
917 #endif 962 #endif
918 963
919 /*------------------------------------------------------------------------* 964 /*------------------------------------------------------------------------*
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 #else 1499 #else
1455 typedef void (GL_APIENTRYP PFNGLTEXIMAGEIOSURFACE2DCHROMIUM) (GLenum target, GLs izei width, GLsizei height, GLuint ioSurfaceId, GLuint plane); 1500 typedef void (GL_APIENTRYP PFNGLTEXIMAGEIOSURFACE2DCHROMIUM) (GLenum target, GLs izei width, GLsizei height, GLuint ioSurfaceId, GLuint plane);
1456 #endif 1501 #endif
1457 #endif 1502 #endif
1458 1503
1459 #ifdef __cplusplus 1504 #ifdef __cplusplus
1460 } 1505 }
1461 #endif 1506 #endif
1462 1507
1463 #endif /* __gl2ext_h_ */ 1508 #endif /* __gl2ext_h_ */
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/texture_manager_unittest.cc ('k') | ui/gfx/gl/generate_bindings.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698