UNPKG

905 BJavaScriptView Raw
1import {log} from '@luma.gl/core';
2import {global} from 'probe.gl/env';
3
4export {COLOR_MODE} from './glsl-to-js-compiler/draw-model';
5export {default as _DebugContext} from './glsl-to-js-compiler/debug-context';
6export {
7 compileShaderModule,
8 compileVertexShader,
9 compileFragmentShader
10} from './glsl-to-js-compiler/compile-shader';
11
12export {makeDebugContext} from './webgl-api-tracing/webgl-debug-context';
13
14// Register the Khronons WebGLDebugger module that lets us instrument WebGLContexts
15// TODO - move the instrumentation code into this module
16import {makeDebugContext} from './webgl-api-tracing/webgl-debug-context';
17global.makeDebugContext = makeDebugContext;
18
19// Since debug support has been explicitly installed, no qualms about printing to console
20// TODO - That said: We could import probe.gl from luma.gl
21log.info('@luma.gl/debug: WebGL debug support installed'); // eslint-disable-line