Add WebGL extensions names

This commit is contained in:
Christoph Diehl 2018-04-25 13:48:31 -07:00
parent a53231e5ed
commit e11c0eca0a
No known key found for this signature in database
GPG key ID: 799CE5B68FEF404A

View file

@ -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