Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. WEBGL_debug_shaders

WEBGL_debug_shaders extension

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2020.

TheWEBGL_debug_shaders extension is part of theWebGL API and exposes a method to debug shaders from privileged contexts.

This extension is not directly available to websites as the way of how the shader is translated may uncover personally-identifiable information to the web page about the kind of graphics card in the user's computer.

WebGL extensions are available using theWebGLRenderingContext.getExtension() method. For more information, see alsoUsing Extensions in theWebGL tutorial.

Note:Depending on the privacy settings of the browser, this extension might only be available to privileged contexts.

This extension is available to both,WebGL1 andWebGL2 contexts.

Instance methods

WEBGL_debug_shaders.getTranslatedShaderSource()

Returns the translated shader source.

Specifications

Specification
WebGL WEBGL_debug_shaders Khronos Ratified Extension Specification

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp