|
@@ -4,7 +4,7 @@
|
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
*/
|
|
*/
|
|
|
|
|
|
-import { GLRenderingContext, COMPAT_instanced_arrays, COMPAT_standard_derivatives, COMPAT_vertex_array_object, getInstancedArrays, getStandardDerivatives, COMPAT_element_index_uint, getElementIndexUint, COMPAT_texture_float, getTextureFloat, COMPAT_texture_float_linear, getTextureFloatLinear, COMPAT_blend_minmax, getBlendMinMax, getFragDepth, COMPAT_frag_depth, COMPAT_color_buffer_float, getColorBufferFloat, COMPAT_draw_buffers, getDrawBuffers, getShaderTextureLod, COMPAT_shader_texture_lod, getDepthTexture, COMPAT_depth_texture, COMPAT_sRGB, getSRGB, getTextureHalfFloat, getTextureHalfFloatLinear, COMPAT_texture_half_float, COMPAT_texture_half_float_linear, COMPAT_color_buffer_half_float, getColorBufferHalfFloat, getVertexArrayObject, getDisjointTimerQuery, COMPAT_disjoint_timer_query } from './compat';
|
|
|
|
|
|
+import { GLRenderingContext, COMPAT_instanced_arrays, COMPAT_standard_derivatives, COMPAT_vertex_array_object, getInstancedArrays, getStandardDerivatives, COMPAT_element_index_uint, getElementIndexUint, COMPAT_texture_float, getTextureFloat, COMPAT_texture_float_linear, getTextureFloatLinear, COMPAT_blend_minmax, getBlendMinMax, getFragDepth, COMPAT_frag_depth, COMPAT_color_buffer_float, getColorBufferFloat, COMPAT_draw_buffers, getDrawBuffers, getShaderTextureLod, COMPAT_shader_texture_lod, getDepthTexture, COMPAT_depth_texture, COMPAT_sRGB, getSRGB, getTextureHalfFloat, getTextureHalfFloatLinear, COMPAT_texture_half_float, COMPAT_texture_half_float_linear, COMPAT_color_buffer_half_float, getColorBufferHalfFloat, getVertexArrayObject, getDisjointTimerQuery, COMPAT_disjoint_timer_query, getNoNonInstancedActiveAttribs } from './compat';
|
|
import { isDebugMode } from '../../mol-util/debug';
|
|
import { isDebugMode } from '../../mol-util/debug';
|
|
|
|
|
|
export type WebGLExtensions = {
|
|
export type WebGLExtensions = {
|
|
@@ -26,6 +26,8 @@ export type WebGLExtensions = {
|
|
shaderTextureLod: COMPAT_shader_texture_lod | null
|
|
shaderTextureLod: COMPAT_shader_texture_lod | null
|
|
sRGB: COMPAT_sRGB | null
|
|
sRGB: COMPAT_sRGB | null
|
|
disjointTimerQuery: COMPAT_disjoint_timer_query | null
|
|
disjointTimerQuery: COMPAT_disjoint_timer_query | null
|
|
|
|
+
|
|
|
|
+ noNonInstancedActiveAttribs: boolean
|
|
}
|
|
}
|
|
|
|
|
|
export function createExtensions(gl: GLRenderingContext): WebGLExtensions {
|
|
export function createExtensions(gl: GLRenderingContext): WebGLExtensions {
|
|
@@ -105,6 +107,8 @@ export function createExtensions(gl: GLRenderingContext): WebGLExtensions {
|
|
console.log('Could not find support for "disjoint_timer_query"');
|
|
console.log('Could not find support for "disjoint_timer_query"');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ const noNonInstancedActiveAttribs = getNoNonInstancedActiveAttribs(gl);
|
|
|
|
+
|
|
return {
|
|
return {
|
|
instancedArrays,
|
|
instancedArrays,
|
|
standardDerivatives,
|
|
standardDerivatives,
|
|
@@ -124,5 +128,7 @@ export function createExtensions(gl: GLRenderingContext): WebGLExtensions {
|
|
shaderTextureLod,
|
|
shaderTextureLod,
|
|
sRGB,
|
|
sRGB,
|
|
disjointTimerQuery,
|
|
disjointTimerQuery,
|
|
|
|
+
|
|
|
|
+ noNonInstancedActiveAttribs,
|
|
};
|
|
};
|
|
}
|
|
}
|