WebGL
Khronos
 

WebGL EXT_depth_clamp Extension Specification

Name

EXT_depth_clamp

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

Members of the WebGL working group

Version

Last modified date: November 06, 2023
Revision: 2

Number

WebGL extension #52

Dependencies

Written against the WebGL API 1.0 specification.

Overview

This extension exposes the EXT_depth_clamp functionality to WebGL.

There are no WebGL-specific behavioral changes.

Consult the above extension for documentation, issues and new functions and enumerants.

IDL

[Exposed=(Window,Worker), LegacyNoInterfaceObject]
interface EXT_depth_clamp {
    const GLenum DEPTH_CLAMP_EXT = 0x864F;
};
  

New Tokens

undefined enable(GLenum cap)
New enum DEPTH_CLAMP_EXT is accepted as the cap parameter.
undefined disable(GLenum cap)
New enum DEPTH_CLAMP_EXT is accepted as the cap parameter.
GLboolean isEnabled(GLenum cap)
New enum DEPTH_CLAMP_EXT is accepted as the cap parameter.
any getParameter(GLenum pname)

A new enum DEPTH_CLAMP_EXT is accepted as the pname parameter.

The return type of this method depends on the parameter queried:

pnamereturned type
DEPTH_CLAMP_EXTGLboolean

Revision History

Revision 1, 2023/06/01

Revision 2, 2023/11/06