WebGL
Khronos
 

WebGL WEBGL_stencil_texturing Extension Specification

Name

WEBGL_stencil_texturing

Contact

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

Contributors

Members of the WebGL working group

Version

Last modified date: January 25, 2024
Revision: 2

Number

WebGL extension #61

Dependencies

Written against the WebGL API 2.0 specification.

Overview

This extension exposes the ANGLE_stencil_texturing 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 WEBGL_stencil_texturing {
    const GLenum DEPTH_STENCIL_TEXTURE_MODE_WEBGL = 0x90EA;
    const GLenum STENCIL_INDEX_WEBGL              = 0x1901;
};
  

New Tokens

undefined texParameterf(GLenum target, GLenum pname, GLfloat param)
A new enum DEPTH_STENCIL_TEXTURE_MODE_WEBGL is accepted as the pname parameter; param must be DEPTH_COMPONENT (default) or STENCIL_INDEX_WEBGL.
undefined texParameteri(GLenum target, GLenum pname, GLint param)
A new enum DEPTH_STENCIL_TEXTURE_MODE_WEBGL is accepted as the pname parameter; param must be DEPTH_COMPONENT (default) or STENCIL_INDEX_WEBGL.
any getTexParameter(GLenum target, GLenum pname)

A new enum DEPTH_STENCIL_TEXTURE_MODE_WEBGL is accepted as the pname parameter.

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

pnamereturned type
DEPTH_STENCIL_TEXTURE_MODE_WEBGLGLenum

Revision History

Revision 1, 2023/06/01

Revision 2, 2024/01/25