From e11c0eca0a70083339cdfaf630bdb2fc7fd2e02c Mon Sep 17 00:00:00 2001 From: Christoph Diehl <1614333+posidron@users.noreply.github.com> Date: Wed, 25 Apr 2018 13:48:31 -0700 Subject: [PATCH] Add WebGL extensions names --- lib/make/webgl.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/lib/make/webgl.js b/lib/make/webgl.js index bab4599..c1a557d 100644 --- a/lib/make/webgl.js +++ b/lib/make/webgl.js @@ -785,6 +785,36 @@ class webgl extends make { ] return random.item(pname) } + + static randomExtension () { + let extension = [ + 'ANGLE_instanced_arrays', + 'EXT_blend_minmax', + 'EXT_color_buffer_half_float', + 'EXT_frag_depth', + 'EXT_sRGB', + 'EXT_shader_texture_lod', + 'EXT_texture_filter_anisotropic', + 'EXT_disjoint_timer_query', + 'OES_element_index_uint', + 'OES_standard_derivatives', + 'OES_texture_float', + 'OES_texture_float_linear', + 'OES_texture_half_float', + 'OES_texture_half_float_linear', + 'OES_vertex_array_object', + 'WEBGL_color_buffer_float', + 'WEBGL_compressed_texture_s3tc', + 'WEBGL_compressed_texture_s3tc_srgb', + 'WEBGL_debug_renderer_info', + 'WEBGL_debug_shaders', + 'WEBGL_depth_texture', + 'WEBGL_draw_buffers', + 'WEBGL_lose_context' + ] + + return random.item(extension) + } } module.exports = webgl