WebGLConstants-76bb35d1.js 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. /**
  2. * Cesium - https://github.com/CesiumGS/cesium
  3. *
  4. * Copyright 2011-2020 Cesium Contributors
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. *
  18. * Columbus View (Pat. Pend.)
  19. *
  20. * Portions licensed separately.
  21. * See https://github.com/CesiumGS/cesium/blob/master/LICENSE.md for full licensing details.
  22. */
  23. define(['exports'], function (exports) { 'use strict';
  24. /**
  25. * Enum containing WebGL Constant values by name.
  26. * for use without an active WebGL context, or in cases where certain constants are unavailable using the WebGL context
  27. * (For example, in [Safari 9]{@link https://github.com/CesiumGS/cesium/issues/2989}).
  28. *
  29. * These match the constants from the [WebGL 1.0]{@link https://www.khronos.org/registry/webgl/specs/latest/1.0/}
  30. * and [WebGL 2.0]{@link https://www.khronos.org/registry/webgl/specs/latest/2.0/}
  31. * specifications.
  32. *
  33. * @enum {Number}
  34. */
  35. var WebGLConstants = {
  36. DEPTH_BUFFER_BIT: 0x00000100,
  37. STENCIL_BUFFER_BIT: 0x00000400,
  38. COLOR_BUFFER_BIT: 0x00004000,
  39. POINTS: 0x0000,
  40. LINES: 0x0001,
  41. LINE_LOOP: 0x0002,
  42. LINE_STRIP: 0x0003,
  43. TRIANGLES: 0x0004,
  44. TRIANGLE_STRIP: 0x0005,
  45. TRIANGLE_FAN: 0x0006,
  46. ZERO: 0,
  47. ONE: 1,
  48. SRC_COLOR: 0x0300,
  49. ONE_MINUS_SRC_COLOR: 0x0301,
  50. SRC_ALPHA: 0x0302,
  51. ONE_MINUS_SRC_ALPHA: 0x0303,
  52. DST_ALPHA: 0x0304,
  53. ONE_MINUS_DST_ALPHA: 0x0305,
  54. DST_COLOR: 0x0306,
  55. ONE_MINUS_DST_COLOR: 0x0307,
  56. SRC_ALPHA_SATURATE: 0x0308,
  57. FUNC_ADD: 0x8006,
  58. BLEND_EQUATION: 0x8009,
  59. BLEND_EQUATION_RGB: 0x8009, // same as BLEND_EQUATION
  60. BLEND_EQUATION_ALPHA: 0x883d,
  61. FUNC_SUBTRACT: 0x800a,
  62. FUNC_REVERSE_SUBTRACT: 0x800b,
  63. BLEND_DST_RGB: 0x80c8,
  64. BLEND_SRC_RGB: 0x80c9,
  65. BLEND_DST_ALPHA: 0x80ca,
  66. BLEND_SRC_ALPHA: 0x80cb,
  67. CONSTANT_COLOR: 0x8001,
  68. ONE_MINUS_CONSTANT_COLOR: 0x8002,
  69. CONSTANT_ALPHA: 0x8003,
  70. ONE_MINUS_CONSTANT_ALPHA: 0x8004,
  71. BLEND_COLOR: 0x8005,
  72. ARRAY_BUFFER: 0x8892,
  73. ELEMENT_ARRAY_BUFFER: 0x8893,
  74. ARRAY_BUFFER_BINDING: 0x8894,
  75. ELEMENT_ARRAY_BUFFER_BINDING: 0x8895,
  76. STREAM_DRAW: 0x88e0,
  77. STATIC_DRAW: 0x88e4,
  78. DYNAMIC_DRAW: 0x88e8,
  79. BUFFER_SIZE: 0x8764,
  80. BUFFER_USAGE: 0x8765,
  81. CURRENT_VERTEX_ATTRIB: 0x8626,
  82. FRONT: 0x0404,
  83. BACK: 0x0405,
  84. FRONT_AND_BACK: 0x0408,
  85. CULL_FACE: 0x0b44,
  86. BLEND: 0x0be2,
  87. DITHER: 0x0bd0,
  88. STENCIL_TEST: 0x0b90,
  89. DEPTH_TEST: 0x0b71,
  90. SCISSOR_TEST: 0x0c11,
  91. POLYGON_OFFSET_FILL: 0x8037,
  92. SAMPLE_ALPHA_TO_COVERAGE: 0x809e,
  93. SAMPLE_COVERAGE: 0x80a0,
  94. NO_ERROR: 0,
  95. INVALID_ENUM: 0x0500,
  96. INVALID_VALUE: 0x0501,
  97. INVALID_OPERATION: 0x0502,
  98. OUT_OF_MEMORY: 0x0505,
  99. CW: 0x0900,
  100. CCW: 0x0901,
  101. LINE_WIDTH: 0x0b21,
  102. ALIASED_POINT_SIZE_RANGE: 0x846d,
  103. ALIASED_LINE_WIDTH_RANGE: 0x846e,
  104. CULL_FACE_MODE: 0x0b45,
  105. FRONT_FACE: 0x0b46,
  106. DEPTH_RANGE: 0x0b70,
  107. DEPTH_WRITEMASK: 0x0b72,
  108. DEPTH_CLEAR_VALUE: 0x0b73,
  109. DEPTH_FUNC: 0x0b74,
  110. STENCIL_CLEAR_VALUE: 0x0b91,
  111. STENCIL_FUNC: 0x0b92,
  112. STENCIL_FAIL: 0x0b94,
  113. STENCIL_PASS_DEPTH_FAIL: 0x0b95,
  114. STENCIL_PASS_DEPTH_PASS: 0x0b96,
  115. STENCIL_REF: 0x0b97,
  116. STENCIL_VALUE_MASK: 0x0b93,
  117. STENCIL_WRITEMASK: 0x0b98,
  118. STENCIL_BACK_FUNC: 0x8800,
  119. STENCIL_BACK_FAIL: 0x8801,
  120. STENCIL_BACK_PASS_DEPTH_FAIL: 0x8802,
  121. STENCIL_BACK_PASS_DEPTH_PASS: 0x8803,
  122. STENCIL_BACK_REF: 0x8ca3,
  123. STENCIL_BACK_VALUE_MASK: 0x8ca4,
  124. STENCIL_BACK_WRITEMASK: 0x8ca5,
  125. VIEWPORT: 0x0ba2,
  126. SCISSOR_BOX: 0x0c10,
  127. COLOR_CLEAR_VALUE: 0x0c22,
  128. COLOR_WRITEMASK: 0x0c23,
  129. UNPACK_ALIGNMENT: 0x0cf5,
  130. PACK_ALIGNMENT: 0x0d05,
  131. MAX_TEXTURE_SIZE: 0x0d33,
  132. MAX_VIEWPORT_DIMS: 0x0d3a,
  133. SUBPIXEL_BITS: 0x0d50,
  134. RED_BITS: 0x0d52,
  135. GREEN_BITS: 0x0d53,
  136. BLUE_BITS: 0x0d54,
  137. ALPHA_BITS: 0x0d55,
  138. DEPTH_BITS: 0x0d56,
  139. STENCIL_BITS: 0x0d57,
  140. POLYGON_OFFSET_UNITS: 0x2a00,
  141. POLYGON_OFFSET_FACTOR: 0x8038,
  142. TEXTURE_BINDING_2D: 0x8069,
  143. SAMPLE_BUFFERS: 0x80a8,
  144. SAMPLES: 0x80a9,
  145. SAMPLE_COVERAGE_VALUE: 0x80aa,
  146. SAMPLE_COVERAGE_INVERT: 0x80ab,
  147. COMPRESSED_TEXTURE_FORMATS: 0x86a3,
  148. DONT_CARE: 0x1100,
  149. FASTEST: 0x1101,
  150. NICEST: 0x1102,
  151. GENERATE_MIPMAP_HINT: 0x8192,
  152. BYTE: 0x1400,
  153. UNSIGNED_BYTE: 0x1401,
  154. SHORT: 0x1402,
  155. UNSIGNED_SHORT: 0x1403,
  156. INT: 0x1404,
  157. UNSIGNED_INT: 0x1405,
  158. FLOAT: 0x1406,
  159. DEPTH_COMPONENT: 0x1902,
  160. ALPHA: 0x1906,
  161. RGB: 0x1907,
  162. RGBA: 0x1908,
  163. LUMINANCE: 0x1909,
  164. LUMINANCE_ALPHA: 0x190a,
  165. UNSIGNED_SHORT_4_4_4_4: 0x8033,
  166. UNSIGNED_SHORT_5_5_5_1: 0x8034,
  167. UNSIGNED_SHORT_5_6_5: 0x8363,
  168. FRAGMENT_SHADER: 0x8b30,
  169. VERTEX_SHADER: 0x8b31,
  170. MAX_VERTEX_ATTRIBS: 0x8869,
  171. MAX_VERTEX_UNIFORM_VECTORS: 0x8dfb,
  172. MAX_VARYING_VECTORS: 0x8dfc,
  173. MAX_COMBINED_TEXTURE_IMAGE_UNITS: 0x8b4d,
  174. MAX_VERTEX_TEXTURE_IMAGE_UNITS: 0x8b4c,
  175. MAX_TEXTURE_IMAGE_UNITS: 0x8872,
  176. MAX_FRAGMENT_UNIFORM_VECTORS: 0x8dfd,
  177. SHADER_TYPE: 0x8b4f,
  178. DELETE_STATUS: 0x8b80,
  179. LINK_STATUS: 0x8b82,
  180. VALIDATE_STATUS: 0x8b83,
  181. ATTACHED_SHADERS: 0x8b85,
  182. ACTIVE_UNIFORMS: 0x8b86,
  183. ACTIVE_ATTRIBUTES: 0x8b89,
  184. SHADING_LANGUAGE_VERSION: 0x8b8c,
  185. CURRENT_PROGRAM: 0x8b8d,
  186. NEVER: 0x0200,
  187. LESS: 0x0201,
  188. EQUAL: 0x0202,
  189. LEQUAL: 0x0203,
  190. GREATER: 0x0204,
  191. NOTEQUAL: 0x0205,
  192. GEQUAL: 0x0206,
  193. ALWAYS: 0x0207,
  194. KEEP: 0x1e00,
  195. REPLACE: 0x1e01,
  196. INCR: 0x1e02,
  197. DECR: 0x1e03,
  198. INVERT: 0x150a,
  199. INCR_WRAP: 0x8507,
  200. DECR_WRAP: 0x8508,
  201. VENDOR: 0x1f00,
  202. RENDERER: 0x1f01,
  203. VERSION: 0x1f02,
  204. NEAREST: 0x2600,
  205. LINEAR: 0x2601,
  206. NEAREST_MIPMAP_NEAREST: 0x2700,
  207. LINEAR_MIPMAP_NEAREST: 0x2701,
  208. NEAREST_MIPMAP_LINEAR: 0x2702,
  209. LINEAR_MIPMAP_LINEAR: 0x2703,
  210. TEXTURE_MAG_FILTER: 0x2800,
  211. TEXTURE_MIN_FILTER: 0x2801,
  212. TEXTURE_WRAP_S: 0x2802,
  213. TEXTURE_WRAP_T: 0x2803,
  214. TEXTURE_2D: 0x0de1,
  215. TEXTURE: 0x1702,
  216. TEXTURE_CUBE_MAP: 0x8513,
  217. TEXTURE_BINDING_CUBE_MAP: 0x8514,
  218. TEXTURE_CUBE_MAP_POSITIVE_X: 0x8515,
  219. TEXTURE_CUBE_MAP_NEGATIVE_X: 0x8516,
  220. TEXTURE_CUBE_MAP_POSITIVE_Y: 0x8517,
  221. TEXTURE_CUBE_MAP_NEGATIVE_Y: 0x8518,
  222. TEXTURE_CUBE_MAP_POSITIVE_Z: 0x8519,
  223. TEXTURE_CUBE_MAP_NEGATIVE_Z: 0x851a,
  224. MAX_CUBE_MAP_TEXTURE_SIZE: 0x851c,
  225. TEXTURE0: 0x84c0,
  226. TEXTURE1: 0x84c1,
  227. TEXTURE2: 0x84c2,
  228. TEXTURE3: 0x84c3,
  229. TEXTURE4: 0x84c4,
  230. TEXTURE5: 0x84c5,
  231. TEXTURE6: 0x84c6,
  232. TEXTURE7: 0x84c7,
  233. TEXTURE8: 0x84c8,
  234. TEXTURE9: 0x84c9,
  235. TEXTURE10: 0x84ca,
  236. TEXTURE11: 0x84cb,
  237. TEXTURE12: 0x84cc,
  238. TEXTURE13: 0x84cd,
  239. TEXTURE14: 0x84ce,
  240. TEXTURE15: 0x84cf,
  241. TEXTURE16: 0x84d0,
  242. TEXTURE17: 0x84d1,
  243. TEXTURE18: 0x84d2,
  244. TEXTURE19: 0x84d3,
  245. TEXTURE20: 0x84d4,
  246. TEXTURE21: 0x84d5,
  247. TEXTURE22: 0x84d6,
  248. TEXTURE23: 0x84d7,
  249. TEXTURE24: 0x84d8,
  250. TEXTURE25: 0x84d9,
  251. TEXTURE26: 0x84da,
  252. TEXTURE27: 0x84db,
  253. TEXTURE28: 0x84dc,
  254. TEXTURE29: 0x84dd,
  255. TEXTURE30: 0x84de,
  256. TEXTURE31: 0x84df,
  257. ACTIVE_TEXTURE: 0x84e0,
  258. REPEAT: 0x2901,
  259. CLAMP_TO_EDGE: 0x812f,
  260. MIRRORED_REPEAT: 0x8370,
  261. FLOAT_VEC2: 0x8b50,
  262. FLOAT_VEC3: 0x8b51,
  263. FLOAT_VEC4: 0x8b52,
  264. INT_VEC2: 0x8b53,
  265. INT_VEC3: 0x8b54,
  266. INT_VEC4: 0x8b55,
  267. BOOL: 0x8b56,
  268. BOOL_VEC2: 0x8b57,
  269. BOOL_VEC3: 0x8b58,
  270. BOOL_VEC4: 0x8b59,
  271. FLOAT_MAT2: 0x8b5a,
  272. FLOAT_MAT3: 0x8b5b,
  273. FLOAT_MAT4: 0x8b5c,
  274. SAMPLER_2D: 0x8b5e,
  275. SAMPLER_CUBE: 0x8b60,
  276. VERTEX_ATTRIB_ARRAY_ENABLED: 0x8622,
  277. VERTEX_ATTRIB_ARRAY_SIZE: 0x8623,
  278. VERTEX_ATTRIB_ARRAY_STRIDE: 0x8624,
  279. VERTEX_ATTRIB_ARRAY_TYPE: 0x8625,
  280. VERTEX_ATTRIB_ARRAY_NORMALIZED: 0x886a,
  281. VERTEX_ATTRIB_ARRAY_POINTER: 0x8645,
  282. VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: 0x889f,
  283. IMPLEMENTATION_COLOR_READ_TYPE: 0x8b9a,
  284. IMPLEMENTATION_COLOR_READ_FORMAT: 0x8b9b,
  285. COMPILE_STATUS: 0x8b81,
  286. LOW_FLOAT: 0x8df0,
  287. MEDIUM_FLOAT: 0x8df1,
  288. HIGH_FLOAT: 0x8df2,
  289. LOW_INT: 0x8df3,
  290. MEDIUM_INT: 0x8df4,
  291. HIGH_INT: 0x8df5,
  292. FRAMEBUFFER: 0x8d40,
  293. RENDERBUFFER: 0x8d41,
  294. RGBA4: 0x8056,
  295. RGB5_A1: 0x8057,
  296. RGB565: 0x8d62,
  297. DEPTH_COMPONENT16: 0x81a5,
  298. STENCIL_INDEX: 0x1901,
  299. STENCIL_INDEX8: 0x8d48,
  300. DEPTH_STENCIL: 0x84f9,
  301. RENDERBUFFER_WIDTH: 0x8d42,
  302. RENDERBUFFER_HEIGHT: 0x8d43,
  303. RENDERBUFFER_INTERNAL_FORMAT: 0x8d44,
  304. RENDERBUFFER_RED_SIZE: 0x8d50,
  305. RENDERBUFFER_GREEN_SIZE: 0x8d51,
  306. RENDERBUFFER_BLUE_SIZE: 0x8d52,
  307. RENDERBUFFER_ALPHA_SIZE: 0x8d53,
  308. RENDERBUFFER_DEPTH_SIZE: 0x8d54,
  309. RENDERBUFFER_STENCIL_SIZE: 0x8d55,
  310. FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: 0x8cd0,
  311. FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: 0x8cd1,
  312. FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: 0x8cd2,
  313. FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: 0x8cd3,
  314. COLOR_ATTACHMENT0: 0x8ce0,
  315. DEPTH_ATTACHMENT: 0x8d00,
  316. STENCIL_ATTACHMENT: 0x8d20,
  317. DEPTH_STENCIL_ATTACHMENT: 0x821a,
  318. NONE: 0,
  319. FRAMEBUFFER_COMPLETE: 0x8cd5,
  320. FRAMEBUFFER_INCOMPLETE_ATTACHMENT: 0x8cd6,
  321. FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: 0x8cd7,
  322. FRAMEBUFFER_INCOMPLETE_DIMENSIONS: 0x8cd9,
  323. FRAMEBUFFER_UNSUPPORTED: 0x8cdd,
  324. FRAMEBUFFER_BINDING: 0x8ca6,
  325. RENDERBUFFER_BINDING: 0x8ca7,
  326. MAX_RENDERBUFFER_SIZE: 0x84e8,
  327. INVALID_FRAMEBUFFER_OPERATION: 0x0506,
  328. UNPACK_FLIP_Y_WEBGL: 0x9240,
  329. UNPACK_PREMULTIPLY_ALPHA_WEBGL: 0x9241,
  330. CONTEXT_LOST_WEBGL: 0x9242,
  331. UNPACK_COLORSPACE_CONVERSION_WEBGL: 0x9243,
  332. BROWSER_DEFAULT_WEBGL: 0x9244,
  333. // WEBGL_compressed_texture_s3tc
  334. COMPRESSED_RGB_S3TC_DXT1_EXT: 0x83f0,
  335. COMPRESSED_RGBA_S3TC_DXT1_EXT: 0x83f1,
  336. COMPRESSED_RGBA_S3TC_DXT3_EXT: 0x83f2,
  337. COMPRESSED_RGBA_S3TC_DXT5_EXT: 0x83f3,
  338. // WEBGL_compressed_texture_pvrtc
  339. COMPRESSED_RGB_PVRTC_4BPPV1_IMG: 0x8c00,
  340. COMPRESSED_RGB_PVRTC_2BPPV1_IMG: 0x8c01,
  341. COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: 0x8c02,
  342. COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: 0x8c03,
  343. // WEBGL_compressed_texture_etc1
  344. COMPRESSED_RGB_ETC1_WEBGL: 0x8d64,
  345. // EXT_color_buffer_half_float
  346. HALF_FLOAT_OES: 0x8d61,
  347. // Desktop OpenGL
  348. DOUBLE: 0x140a,
  349. // WebGL 2
  350. READ_BUFFER: 0x0c02,
  351. UNPACK_ROW_LENGTH: 0x0cf2,
  352. UNPACK_SKIP_ROWS: 0x0cf3,
  353. UNPACK_SKIP_PIXELS: 0x0cf4,
  354. PACK_ROW_LENGTH: 0x0d02,
  355. PACK_SKIP_ROWS: 0x0d03,
  356. PACK_SKIP_PIXELS: 0x0d04,
  357. COLOR: 0x1800,
  358. DEPTH: 0x1801,
  359. STENCIL: 0x1802,
  360. RED: 0x1903,
  361. RGB8: 0x8051,
  362. RGBA8: 0x8058,
  363. RGB10_A2: 0x8059,
  364. TEXTURE_BINDING_3D: 0x806a,
  365. UNPACK_SKIP_IMAGES: 0x806d,
  366. UNPACK_IMAGE_HEIGHT: 0x806e,
  367. TEXTURE_3D: 0x806f,
  368. TEXTURE_WRAP_R: 0x8072,
  369. MAX_3D_TEXTURE_SIZE: 0x8073,
  370. UNSIGNED_INT_2_10_10_10_REV: 0x8368,
  371. MAX_ELEMENTS_VERTICES: 0x80e8,
  372. MAX_ELEMENTS_INDICES: 0x80e9,
  373. TEXTURE_MIN_LOD: 0x813a,
  374. TEXTURE_MAX_LOD: 0x813b,
  375. TEXTURE_BASE_LEVEL: 0x813c,
  376. TEXTURE_MAX_LEVEL: 0x813d,
  377. MIN: 0x8007,
  378. MAX: 0x8008,
  379. DEPTH_COMPONENT24: 0x81a6,
  380. MAX_TEXTURE_LOD_BIAS: 0x84fd,
  381. TEXTURE_COMPARE_MODE: 0x884c,
  382. TEXTURE_COMPARE_FUNC: 0x884d,
  383. CURRENT_QUERY: 0x8865,
  384. QUERY_RESULT: 0x8866,
  385. QUERY_RESULT_AVAILABLE: 0x8867,
  386. STREAM_READ: 0x88e1,
  387. STREAM_COPY: 0x88e2,
  388. STATIC_READ: 0x88e5,
  389. STATIC_COPY: 0x88e6,
  390. DYNAMIC_READ: 0x88e9,
  391. DYNAMIC_COPY: 0x88ea,
  392. MAX_DRAW_BUFFERS: 0x8824,
  393. DRAW_BUFFER0: 0x8825,
  394. DRAW_BUFFER1: 0x8826,
  395. DRAW_BUFFER2: 0x8827,
  396. DRAW_BUFFER3: 0x8828,
  397. DRAW_BUFFER4: 0x8829,
  398. DRAW_BUFFER5: 0x882a,
  399. DRAW_BUFFER6: 0x882b,
  400. DRAW_BUFFER7: 0x882c,
  401. DRAW_BUFFER8: 0x882d,
  402. DRAW_BUFFER9: 0x882e,
  403. DRAW_BUFFER10: 0x882f,
  404. DRAW_BUFFER11: 0x8830,
  405. DRAW_BUFFER12: 0x8831,
  406. DRAW_BUFFER13: 0x8832,
  407. DRAW_BUFFER14: 0x8833,
  408. DRAW_BUFFER15: 0x8834,
  409. MAX_FRAGMENT_UNIFORM_COMPONENTS: 0x8b49,
  410. MAX_VERTEX_UNIFORM_COMPONENTS: 0x8b4a,
  411. SAMPLER_3D: 0x8b5f,
  412. SAMPLER_2D_SHADOW: 0x8b62,
  413. FRAGMENT_SHADER_DERIVATIVE_HINT: 0x8b8b,
  414. PIXEL_PACK_BUFFER: 0x88eb,
  415. PIXEL_UNPACK_BUFFER: 0x88ec,
  416. PIXEL_PACK_BUFFER_BINDING: 0x88ed,
  417. PIXEL_UNPACK_BUFFER_BINDING: 0x88ef,
  418. FLOAT_MAT2x3: 0x8b65,
  419. FLOAT_MAT2x4: 0x8b66,
  420. FLOAT_MAT3x2: 0x8b67,
  421. FLOAT_MAT3x4: 0x8b68,
  422. FLOAT_MAT4x2: 0x8b69,
  423. FLOAT_MAT4x3: 0x8b6a,
  424. SRGB: 0x8c40,
  425. SRGB8: 0x8c41,
  426. SRGB8_ALPHA8: 0x8c43,
  427. COMPARE_REF_TO_TEXTURE: 0x884e,
  428. RGBA32F: 0x8814,
  429. RGB32F: 0x8815,
  430. RGBA16F: 0x881a,
  431. RGB16F: 0x881b,
  432. VERTEX_ATTRIB_ARRAY_INTEGER: 0x88fd,
  433. MAX_ARRAY_TEXTURE_LAYERS: 0x88ff,
  434. MIN_PROGRAM_TEXEL_OFFSET: 0x8904,
  435. MAX_PROGRAM_TEXEL_OFFSET: 0x8905,
  436. MAX_VARYING_COMPONENTS: 0x8b4b,
  437. TEXTURE_2D_ARRAY: 0x8c1a,
  438. TEXTURE_BINDING_2D_ARRAY: 0x8c1d,
  439. R11F_G11F_B10F: 0x8c3a,
  440. UNSIGNED_INT_10F_11F_11F_REV: 0x8c3b,
  441. RGB9_E5: 0x8c3d,
  442. UNSIGNED_INT_5_9_9_9_REV: 0x8c3e,
  443. TRANSFORM_FEEDBACK_BUFFER_MODE: 0x8c7f,
  444. MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS: 0x8c80,
  445. TRANSFORM_FEEDBACK_VARYINGS: 0x8c83,
  446. TRANSFORM_FEEDBACK_BUFFER_START: 0x8c84,
  447. TRANSFORM_FEEDBACK_BUFFER_SIZE: 0x8c85,
  448. TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN: 0x8c88,
  449. RASTERIZER_DISCARD: 0x8c89,
  450. MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS: 0x8c8a,
  451. MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS: 0x8c8b,
  452. INTERLEAVED_ATTRIBS: 0x8c8c,
  453. SEPARATE_ATTRIBS: 0x8c8d,
  454. TRANSFORM_FEEDBACK_BUFFER: 0x8c8e,
  455. TRANSFORM_FEEDBACK_BUFFER_BINDING: 0x8c8f,
  456. RGBA32UI: 0x8d70,
  457. RGB32UI: 0x8d71,
  458. RGBA16UI: 0x8d76,
  459. RGB16UI: 0x8d77,
  460. RGBA8UI: 0x8d7c,
  461. RGB8UI: 0x8d7d,
  462. RGBA32I: 0x8d82,
  463. RGB32I: 0x8d83,
  464. RGBA16I: 0x8d88,
  465. RGB16I: 0x8d89,
  466. RGBA8I: 0x8d8e,
  467. RGB8I: 0x8d8f,
  468. RED_INTEGER: 0x8d94,
  469. RGB_INTEGER: 0x8d98,
  470. RGBA_INTEGER: 0x8d99,
  471. SAMPLER_2D_ARRAY: 0x8dc1,
  472. SAMPLER_2D_ARRAY_SHADOW: 0x8dc4,
  473. SAMPLER_CUBE_SHADOW: 0x8dc5,
  474. UNSIGNED_INT_VEC2: 0x8dc6,
  475. UNSIGNED_INT_VEC3: 0x8dc7,
  476. UNSIGNED_INT_VEC4: 0x8dc8,
  477. INT_SAMPLER_2D: 0x8dca,
  478. INT_SAMPLER_3D: 0x8dcb,
  479. INT_SAMPLER_CUBE: 0x8dcc,
  480. INT_SAMPLER_2D_ARRAY: 0x8dcf,
  481. UNSIGNED_INT_SAMPLER_2D: 0x8dd2,
  482. UNSIGNED_INT_SAMPLER_3D: 0x8dd3,
  483. UNSIGNED_INT_SAMPLER_CUBE: 0x8dd4,
  484. UNSIGNED_INT_SAMPLER_2D_ARRAY: 0x8dd7,
  485. DEPTH_COMPONENT32F: 0x8cac,
  486. DEPTH32F_STENCIL8: 0x8cad,
  487. FLOAT_32_UNSIGNED_INT_24_8_REV: 0x8dad,
  488. FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING: 0x8210,
  489. FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE: 0x8211,
  490. FRAMEBUFFER_ATTACHMENT_RED_SIZE: 0x8212,
  491. FRAMEBUFFER_ATTACHMENT_GREEN_SIZE: 0x8213,
  492. FRAMEBUFFER_ATTACHMENT_BLUE_SIZE: 0x8214,
  493. FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE: 0x8215,
  494. FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE: 0x8216,
  495. FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE: 0x8217,
  496. FRAMEBUFFER_DEFAULT: 0x8218,
  497. UNSIGNED_INT_24_8: 0x84fa,
  498. DEPTH24_STENCIL8: 0x88f0,
  499. UNSIGNED_NORMALIZED: 0x8c17,
  500. DRAW_FRAMEBUFFER_BINDING: 0x8ca6, // Same as FRAMEBUFFER_BINDING
  501. READ_FRAMEBUFFER: 0x8ca8,
  502. DRAW_FRAMEBUFFER: 0x8ca9,
  503. READ_FRAMEBUFFER_BINDING: 0x8caa,
  504. RENDERBUFFER_SAMPLES: 0x8cab,
  505. FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER: 0x8cd4,
  506. MAX_COLOR_ATTACHMENTS: 0x8cdf,
  507. COLOR_ATTACHMENT1: 0x8ce1,
  508. COLOR_ATTACHMENT2: 0x8ce2,
  509. COLOR_ATTACHMENT3: 0x8ce3,
  510. COLOR_ATTACHMENT4: 0x8ce4,
  511. COLOR_ATTACHMENT5: 0x8ce5,
  512. COLOR_ATTACHMENT6: 0x8ce6,
  513. COLOR_ATTACHMENT7: 0x8ce7,
  514. COLOR_ATTACHMENT8: 0x8ce8,
  515. COLOR_ATTACHMENT9: 0x8ce9,
  516. COLOR_ATTACHMENT10: 0x8cea,
  517. COLOR_ATTACHMENT11: 0x8ceb,
  518. COLOR_ATTACHMENT12: 0x8cec,
  519. COLOR_ATTACHMENT13: 0x8ced,
  520. COLOR_ATTACHMENT14: 0x8cee,
  521. COLOR_ATTACHMENT15: 0x8cef,
  522. FRAMEBUFFER_INCOMPLETE_MULTISAMPLE: 0x8d56,
  523. MAX_SAMPLES: 0x8d57,
  524. HALF_FLOAT: 0x140b,
  525. RG: 0x8227,
  526. RG_INTEGER: 0x8228,
  527. R8: 0x8229,
  528. RG8: 0x822b,
  529. R16F: 0x822d,
  530. R32F: 0x822e,
  531. RG16F: 0x822f,
  532. RG32F: 0x8230,
  533. R8I: 0x8231,
  534. R8UI: 0x8232,
  535. R16I: 0x8233,
  536. R16UI: 0x8234,
  537. R32I: 0x8235,
  538. R32UI: 0x8236,
  539. RG8I: 0x8237,
  540. RG8UI: 0x8238,
  541. RG16I: 0x8239,
  542. RG16UI: 0x823a,
  543. RG32I: 0x823b,
  544. RG32UI: 0x823c,
  545. VERTEX_ARRAY_BINDING: 0x85b5,
  546. R8_SNORM: 0x8f94,
  547. RG8_SNORM: 0x8f95,
  548. RGB8_SNORM: 0x8f96,
  549. RGBA8_SNORM: 0x8f97,
  550. SIGNED_NORMALIZED: 0x8f9c,
  551. COPY_READ_BUFFER: 0x8f36,
  552. COPY_WRITE_BUFFER: 0x8f37,
  553. COPY_READ_BUFFER_BINDING: 0x8f36, // Same as COPY_READ_BUFFER
  554. COPY_WRITE_BUFFER_BINDING: 0x8f37, // Same as COPY_WRITE_BUFFER
  555. UNIFORM_BUFFER: 0x8a11,
  556. UNIFORM_BUFFER_BINDING: 0x8a28,
  557. UNIFORM_BUFFER_START: 0x8a29,
  558. UNIFORM_BUFFER_SIZE: 0x8a2a,
  559. MAX_VERTEX_UNIFORM_BLOCKS: 0x8a2b,
  560. MAX_FRAGMENT_UNIFORM_BLOCKS: 0x8a2d,
  561. MAX_COMBINED_UNIFORM_BLOCKS: 0x8a2e,
  562. MAX_UNIFORM_BUFFER_BINDINGS: 0x8a2f,
  563. MAX_UNIFORM_BLOCK_SIZE: 0x8a30,
  564. MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS: 0x8a31,
  565. MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS: 0x8a33,
  566. UNIFORM_BUFFER_OFFSET_ALIGNMENT: 0x8a34,
  567. ACTIVE_UNIFORM_BLOCKS: 0x8a36,
  568. UNIFORM_TYPE: 0x8a37,
  569. UNIFORM_SIZE: 0x8a38,
  570. UNIFORM_BLOCK_INDEX: 0x8a3a,
  571. UNIFORM_OFFSET: 0x8a3b,
  572. UNIFORM_ARRAY_STRIDE: 0x8a3c,
  573. UNIFORM_MATRIX_STRIDE: 0x8a3d,
  574. UNIFORM_IS_ROW_MAJOR: 0x8a3e,
  575. UNIFORM_BLOCK_BINDING: 0x8a3f,
  576. UNIFORM_BLOCK_DATA_SIZE: 0x8a40,
  577. UNIFORM_BLOCK_ACTIVE_UNIFORMS: 0x8a42,
  578. UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES: 0x8a43,
  579. UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER: 0x8a44,
  580. UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER: 0x8a46,
  581. INVALID_INDEX: 0xffffffff,
  582. MAX_VERTEX_OUTPUT_COMPONENTS: 0x9122,
  583. MAX_FRAGMENT_INPUT_COMPONENTS: 0x9125,
  584. MAX_SERVER_WAIT_TIMEOUT: 0x9111,
  585. OBJECT_TYPE: 0x9112,
  586. SYNC_CONDITION: 0x9113,
  587. SYNC_STATUS: 0x9114,
  588. SYNC_FLAGS: 0x9115,
  589. SYNC_FENCE: 0x9116,
  590. SYNC_GPU_COMMANDS_COMPLETE: 0x9117,
  591. UNSIGNALED: 0x9118,
  592. SIGNALED: 0x9119,
  593. ALREADY_SIGNALED: 0x911a,
  594. TIMEOUT_EXPIRED: 0x911b,
  595. CONDITION_SATISFIED: 0x911c,
  596. WAIT_FAILED: 0x911d,
  597. SYNC_FLUSH_COMMANDS_BIT: 0x00000001,
  598. VERTEX_ATTRIB_ARRAY_DIVISOR: 0x88fe,
  599. ANY_SAMPLES_PASSED: 0x8c2f,
  600. ANY_SAMPLES_PASSED_CONSERVATIVE: 0x8d6a,
  601. SAMPLER_BINDING: 0x8919,
  602. RGB10_A2UI: 0x906f,
  603. INT_2_10_10_10_REV: 0x8d9f,
  604. TRANSFORM_FEEDBACK: 0x8e22,
  605. TRANSFORM_FEEDBACK_PAUSED: 0x8e23,
  606. TRANSFORM_FEEDBACK_ACTIVE: 0x8e24,
  607. TRANSFORM_FEEDBACK_BINDING: 0x8e25,
  608. COMPRESSED_R11_EAC: 0x9270,
  609. COMPRESSED_SIGNED_R11_EAC: 0x9271,
  610. COMPRESSED_RG11_EAC: 0x9272,
  611. COMPRESSED_SIGNED_RG11_EAC: 0x9273,
  612. COMPRESSED_RGB8_ETC2: 0x9274,
  613. COMPRESSED_SRGB8_ETC2: 0x9275,
  614. COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9276,
  615. COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: 0x9277,
  616. COMPRESSED_RGBA8_ETC2_EAC: 0x9278,
  617. COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: 0x9279,
  618. TEXTURE_IMMUTABLE_FORMAT: 0x912f,
  619. MAX_ELEMENT_INDEX: 0x8d6b,
  620. TEXTURE_IMMUTABLE_LEVELS: 0x82df,
  621. // Extensions
  622. MAX_TEXTURE_MAX_ANISOTROPY_EXT: 0x84ff,
  623. };
  624. var WebGLConstants$1 = Object.freeze(WebGLConstants);
  625. exports.WebGLConstants = WebGLConstants$1;
  626. });
  627. //# sourceMappingURL=WebGLConstants-76bb35d1.js.map