Skip to main content

WEBGL_debug_shaders

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

MDN Reference

Methods

getTranslatedShaderSource()

getTranslatedShaderSource(shader): string;

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

MDN Reference

Parameters

ParameterType
shaderWebGLShader

Returns

string