The WEBGL_debug_shaders extension is part of the WebGL API and exposes a method to debug shaders from privileged contexts.

MDN Reference

interface WEBGL_debug_shaders {
    getTranslatedShaderSource(shader: WebGLShader): string;
}
Index

Methods

  • The WEBGL_debug_shaders.getTranslatedShaderSource() method is part of the WebGL API and allows you to debug a translated shader.

    MDN Reference

    Parameters

    Returns string