API / geotoolkit3d / util / WebGLConstants / WebGLConstants
util.WebGLConstants.WebGLConstants
Utility class providing WebGL rendering capabilities and information.
Constructors
Methods
Methods
▸ getClassName(): string
string
▸ Static getClassName(): string
string
▸ Static getMaxTextureSize(): number
Get the WebGL maximum texture size this browser/device can theoretically use (not taking memory usage into account)
number
size
▸ Static getMaxTextures(): number
Get the WebGL maximum number of textures
number
maxTextures number
▸ Static getSupportedRenderTargetTypes(): SupportedRenderTargetType
Return the list of supported Textures/RenderTarget types.
While the traditional UnsignedByte format textures are widely supported, some Float-based textures might not be supported on all hardware/browser combinations.
This utility class performs an actual test to make sure these types are supported, which is more reliable than just consulting WebGL extensions.
▸ Static isIntelGPU(): boolean
Check if it is intel graphic card
boolean
isIntelGPU
▸ Static isWebGL2(): boolean
Check if the browser supports WebGL 2.0
boolean
isWebGL2
▸ Static webgl(): boolean
Check if the browser supports WebGL 1.0
boolean
webgl