Search completed in 0.96 seconds.
WebGLRenderingContext.stencilOpSeparate() - Web APIs
the webglrenderingcontext.
stencilopseparate() method of the webgl api sets the front and/or back-facing
stencil test actions.
... syntax void gl.
stencilopseparate(face, fail, zfail, zpass); parameters the fail, zfail and zpass parameters accept all constants listed below.
... face a glenum specifying whether the front and/or back
stencil state is updated.
...And 17 more matches
WebGLRenderingContext.stencilOp() - Web APIs
the webglrenderingcontext.
stencilop() method of the webgl api sets both the front and back-facing
stencil test actions.
... syntax void gl.
stencilop(fail, zfail, zpass); parameters all three parameters accept all constants listed below.
... fail a glenum specifying the function to use when the
stencil test fails.
...And 16 more matches
WebGLRenderingContext.stencilFunc() - Web APIs
the webglrenderingcontext.
stencilfunc() method of the webgl api sets the front and back function and reference value for
stencil testing.
...
stenciling enables and disables drawing on a per-pixel basis.
... syntax void gl.
stencilfunc(func, ref, mask); parameters func a glenum specifying the test function.
...And 14 more matches
WebGLRenderingContext.stencilFuncSeparate() - Web APIs
the webglrenderingcontext.
stencilfuncseparate() method of the webgl api sets the front and/or back function and reference value for
stencil testing.
...
stencilling enables and disables drawing on a per-pixel basis.
... syntax void gl.
stencilfuncseparate(face, func, ref, mask); parameters face a glenum specifying whether the front and/or back
stencil state is updated.
...And 14 more matches
WebGLRenderingContext.stencilMaskSeparate() - Web APIs
the webglrenderingcontext.
stencilmaskseparate() method of the webgl api controls enabling and disabling of front and/or back writing of individual bits in the
stencil planes.
... the webglrenderingcontext.
stencilmask() method can set both, the front and back
stencil writemasks to one value at the same time.
... syntax void gl.
stencilmaskseparate(face, mask); parameters face a glenum specifying whether the front and/or back
stencil writemask is updated.
...And 4 more matches
XRWebGLLayerInit.stencil - Web APIs
when using the xrwebgllayer() constructor to create a new webgl rendering layer for webxr, providing as the layerinit parameter an object whose
stencil property is false requests that the new layer be created without a
stencil buffer.
... the
stencil buffer is an optional buffer which, just like the depth buffer, contains one entry for every pixel in the frame buffer.
... also just like the depth buffer, the value of an enter in the
stencil buffer directly affects how (or if) the corresponding pixel is drawn during rendering.
...And 4 more matches
WebGLRenderingContext.clearStencil() - Web APIs
the webglrenderingcontext.clear
stencil() method of the webgl api specifies the clear value for the
stencil buffer.
... this specifies what
stencil value to use when calling the clear() method.
... syntax void gl.clear
stencil(s); parameters s a glint specifying the index used when the
stencil buffer is cleared.
...And 3 more matches
WebGLRenderingContext.stencilMask() - Web APIs
the webglrenderingcontext.
stencilmask() method of the webgl api controls enabling and disabling of both the front and back writing of individual bits in the
stencil planes.
... the webglrenderingcontext.
stencilmaskseparate() method can set front and back
stencil writemasks to different values.
... syntax void gl.
stencilmask(mask); parameters mask a gluint specifying a bit mask to enable or disable writing of individual bits in the
stencil planes.
...And 3 more matches
WebGL constants - Web APIs
stencil_buffer_bit 0x00000400 passed to clear to clear the current
stencil buffer.
...
stencil_clear_value 0x0b91 passed to getparameter to get the value the
stencil will be cleared to.
...
stencil_func 0x0b92 passed to getparameter to get the current
stencil function.
...And 22 more matches
Index - Web APIs
4566 webgl_depth_texture api, reference, webgl, webgl extension the webgl_depth_texture extension is part of the webgl api and defines 2d depth and depth-
stencil textures.
... 4742 webglrenderingcontext.clear
stencil() api, method, reference, webgl, webglrenderingcontext the webglrenderingcontext.clear
stencil() method of the webgl api specifies the clear value for the
stencil buffer.
... 4822 webglrenderingcontext.
stencilfunc() api, method, reference, webgl, webglrenderingcontext the webglrenderingcontext.
stencilfunc() method of the webgl api sets the front and back function and reference value for
stencil testing.
...And 5 more matches
WebGLRenderingContext - Web APIs
webglrenderingcontext.clear
stencil() specifies the
stencil value used when clearing the
stencil buffer.
... webglrenderingcontext.
stencilfunc() sets the both front and back function and reference value for
stencil testing.
... webglrenderingcontext.
stencilfuncseparate() sets the front and/or back function and reference value for
stencil testing.
...And 4 more matches
WebGL2RenderingContext.clearBuffer[fiuv]() - Web APIs
syntax void gl.clearbufferfv(buffer, drawbuffer, values, optional srcoffset); void gl.clearbufferiv(buffer, drawbuffer, values, optional srcoffset); void gl.clearbufferuiv(buffer, drawbuffer, values, optional srcoffset); void gl.clearbufferfi(buffer, drawbuffer, depth,
stencil); parameters buffer a glenum specifying the buffer to clear.
... gl.
stencil:
stencil buffer.
... gl.depth_
stencil: clears depth and
stencil buffers (used with clearbufferfi).
...And 2 more matches
WebGLRenderingContext.getFramebufferAttachmentParameter() - Web APIs
possible values: gl.framebuffer: collection buffer data storage of color, alpha, depth and
stencil buffers used to render an image.
... gl.
stencil_attachment: texture attachment for the framebuffer's
stencil buffer.
... gl.depth_
stencil_attachment: texture attachment for both, the depth and
stencil buffer.
...And 2 more matches
WebGL best practices - Web APIs
https://github.com/binomialllc/basis_universal/blob/master/webgl/readme.md memory usage of depth and
stencil formats depth and
stencil attachments and formats are actually inseparable on many devices.
... you may ask for depth_component24 or
stencil_index8, but you're often getting d24x8 and x24s8 32bpp formats behind the scenes.
... assume that the memory usage of depth and
stencil formats is rounded up to the nearest four bytes.
...And 2 more matches
OVR_multiview2.framebufferTextureMultiviewOVR() - Web APIs
possible values: gl.framebuffer: collection buffer data storage of color, alpha, depth and
stencil buffers used to render an image.
... gl.
stencil_attachment: attaches the texture to the framebuffer's
stencil buffer.
... gl.depth_
stencil_attachment: depth and
stencil buffer.
...color_attachment6_webgl ext.color_attachment7_webgl ext.color_attachment8_webgl ext.color_attachment9_webgl ext.color_attachment10_webgl ext.color_attachment11_webgl ext.color_attachment12_webgl ext.color_attachment13_webgl ext.color_attachment14_webgl ext.color_attachment15_webgl when using the webgl_depth_texture extension: ext.depth_
stencil_attachment: depth and
stencil buffer data storage.
WebGLRenderingContext.clear() - Web APIs
the preset values can be set by clearcolor(), cleardepth() or clear
stencil().
...possible values are: gl.color_buffer_bit gl.depth_buffer_bit gl.
stencil_buffer_bit return value none.
... gl.clear(gl.depth_buffer_bit); gl.clear(gl.depth_buffer_bit | gl.color_buffer_bit); to get the current clear values, query the color_clear_value, depth_clear_value, and
stencil_clear_value constants.
... gl.getparameter(gl.color_clear_value); gl.getparameter(gl.depth_clear_value); gl.getparameter(gl.
stencil_clear_value); specifications specification status comment webgl 1.0the definition of 'clear' in that specification.
WebGLRenderingContext.framebufferTexture2D() - Web APIs
possible values: gl.framebuffer: collection buffer data storage of color, alpha, depth and
stencil buffers used to render an image.
... gl.
stencil_attachment: attaches the texture to the framebuffer's
stencil buffer.
... when using a webgl 2 context, the following values are available additionally: gl.depth_
stencil_attachment: depth and
stencil buffer.
....color_attachment6_webgl ext.color_attachment7_webgl ext.color_attachment8_webgl ext.color_attachment9_webgl ext.color_attachment10_webgl ext.color_attachment11_webgl ext.color_attachment12_webgl ext.color_attachment13_webgl ext.color_attachment14_webgl ext.color_attachment15_webgl when using the webgl_depth_texture extension: gl.depth_
stencil_attachment: depth and
stencil buffer data storage.
WEBGL_depth_texture - Web APIs
the webgl_depth_texture extension is part of the webgl api and defines 2d depth and depth-
stencil textures.
... extended methods this extension extends webglrenderingcontext.teximage2d(): the format and internalformat parameters now accept gl.depth_component and gl.depth_
stencil.
... this extension extends webglrenderingcontext.framebuffertexture2d(): the attachment parameter now accepts gl.depth_
stencil_attachment.
WebGL2RenderingContext.framebufferTextureLayer() - Web APIs
possible values: gl.framebuffer: collection buffer data storage of color, alpha, depth and
stencil buffers used to render an image.
... gl.
stencil_attachment: attaches the texture to the framebuffer's
stencil buffer.
... gl.depth_
stencil_attachment: depth and
stencil buffer.
WebGL2RenderingContext.invalidateFramebuffer() - Web APIs
possible values: gl.framebuffer: collection buffer data storage of color, alpha, depth and
stencil buffers used to render an image.
... gl.
stencil_attachment: invalidates the framebuffer's
stencil buffer.
... gl.depth_
stencil_attachment: invalidates both the framebuffer's depth and
stencil buffer.
WebGL2RenderingContext.invalidateSubFramebuffer() - Web APIs
possible values: gl.framebuffer: collection buffer data storage of color, alpha, depth and
stencil buffers used to render an image.
... gl.
stencil_attachment: invalidates the framebuffer's
stencil buffer.
... gl.depth_
stencil_attachment: invalidates both the framebuffer's depth and
stencil buffer.
WebGLRenderingContext.framebufferRenderbuffer() - Web APIs
possible values: gl.framebuffer: collection buffer data storage of color, alpha, depth and
stencil buffers used to render an image.
... gl.depth_
stencil_attachment: depth and
stencil buffer.
... gl.
stencil_attachment:
stencil buffer.
WebGLRenderingContext.isEnabled() - Web APIs
gl.
stencil_test
stencil testing and updates to the
stencil buffer.
... see webglrenderingcontext.
stencilfunc().
... examples gl.isenabled(gl.
stencil_test); // false to activate or deactivate a specific capability, use the webglrenderingcontext.enable() and webglrenderingcontext.disable() methods: gl.enable(gl.
stencil_test); gl.disable(gl.
stencil_test); specifications specification status comment webgl 1.0the definition of 'isenabled' in that specification.
XRWebGLLayer.framebuffer - Web APIs
opaque framebuffers initialized without specifying a
stencil will not have a
stencil buffer.
... note: the depth and
stencil properties are not required to be supported in order for a browser to be construed as having full webgl support.
... the
stencil buffer is filled with 0.
WebGLRenderingContext.checkFramebufferStatus() - Web APIs
possible values: gl.framebuffer: collection buffer data storage of color, alpha, depth and
stencil buffers used to render an image.
... gl.framebuffer_unsupported: the format of the attachment is not supported or if depth and
stencil attachments are not the same renderbuffer.
WebGLRenderingContext.getParameter() - Web APIs
gl.renderer domstring gl.sample_buffers glint gl.sample_coverage_invert glboolean gl.sample_coverage_value glfloat gl.samples glint gl.scissor_box int32array (with 4 elements) gl.scissor_test glboolean gl.shading_language_version domstring gl.
stencil_back_fail glenum gl.
stencil_back_func glenum gl.
stencil_back_pass_depth_fail glenum gl.
stencil_back_pass_depth_pass glenum gl.
stencil_back_ref glint gl.
stencil_back_value_mask gluint gl.
stencil_back_writemask gluint gl.
stencil_bits glint gl.
stencil_clear_value glint ...
... gl.
stencil_fail glenum gl.
stencil_func glenum gl.
stencil_pass_depth_fail glenum gl.
stencil_pass_depth_pass glenum gl.
stencil_ref glint gl.
stencil_test glboolean gl.
stencil_value_mask gluint gl.
stencil_writemask gluint gl.subpixel_bits glint gl.texture_binding_2d webgltexture or null gl.texture_binding_cube_map webgltexture or null gl.unpack_alignment glint gl.unpack_colorspace_conversion_webgl glenum gl.unpack_flip_y_webgl glboolean gl.unpack_premultiply_alpha_webgl glboolean gl.vendor domstring gl.version domstring g...
WebGLRenderingContext.renderbufferStorage() - Web APIs
gl.
stencil_index8: 8
stencil bits.
... gl.depth_
stencil when using a webgl 2 context, the following values are available additionally: gl.r8 gl.r8ui gl.r8i gl.r16ui gl.r16i gl.r32ui gl.r32i gl.rg8 gl.rg8ui gl.rg8i gl.rg16ui gl.rg16i gl.rg32ui gl.rg32i gl.rgb8 gl.rgba8 gl.srgb8_alpha8 (also available as an extension for webgl 1, see below) gl.rgb10_a2 gl.rgba8ui gl.rgba8i gl.rgb10_a2ui gl.rgba16ui gl.rgba16i gl.rgba32i gl.rgba32ui gl.depth_component24 gl.depth_component32f gl.depth24_
stencil8 gl.depth32f_
stencil8 when using the webgl_color_buffer_float extension: ext.rgba32f_ext: rgba 32-bit floating-point type.
XRWebGLLayer() - Web APIs
stencil optional a boolean value which, if true, requests that the new layer include a
stencil buffer.
... otherwise, no
stencil buffer is allocated.
XRWebGLLayerInit - Web APIs
stencil optional a boolean value which, if true, requests that the new layer include a
stencil buffer.
... otherwise, no
stencil buffer is allocated.
OVR_multiview2 - Web APIs
s: false } ); const ext = gl.getextension('ovr_multiview2'); const fb = gl.createframebuffer(); gl.bindframebuffer(gl.draw_framebuffer, fb); const colortex = gl.createtexture(); gl.bindtexture(gl.texture_2d_array, colortex); gl.texstorage3d(gl.texture_2d_array, 1, gl.rgba8, 512, 512, 2); ext.framebuffertexturemultiviewovr(gl.draw_framebuffer, gl.color_attachment0, colortex, 0, 0, 2); const depth
stenciltex = gl.createtexture(); gl.bindtexture(gl.texture_2d_array, depth
stenciltex); gl.texstorage3d(gl.texture_2d_array, 1, gl.depth32f_
stencil8, 512, 512, 2); ext.framebuffertexturemultiviewovr(gl.draw_framebuffer, gl.depth_
stencil_attachment, depth
stenciltex, 0, 0, 2); gl.drawelements(...); // draw will be broadcasted to the layers of colortex and depth
stenciltex.
WebGL2RenderingContext.renderbufferStorageMultisample() - Web APIs
gl.r8ui gl.r8i gl.r16ui gl.r16i gl.r32ui gl.r32i gl.rg8 gl.rg8ui gl.rg8i gl.rg16ui gl.rg16i gl.rg32ui gl.rg32i gl.rgb8 gl.rgba8 gl.srgb8_alpha8 gl.rgba4 gl.rgb565 gl.rgb5_a1 gl.rgb10_a2 gl.rgba8ui gl.rgba8i gl.rgb10_a2ui gl.rgba16ui gl.rgba16i gl.rgba32i gl.rgba32ui gl.depth_component16 gl.depth_component24 gl.depth_component32f gl.depth_
stencil gl.depth24_
stencil8 gl.depth32f_
stencil8 gl.
stencil_index8 width a glsizei specifying the width of the renderbuffer in pixels.
WebGLRenderingContext.getContextAttributes() - Web APIs
= document.getelementbyid('canvas'); var gl = canvas.getcontext('webgl'); gl.getcontextattributes(); the getcontextattributes method returns an object that describes the attributes set on this context, for example: { alpha: true, antialias: true, depth: true, failifmajorperformancecaveat: false, powerpreference: "default", premultipliedalpha: true, preservedrawingbuffer: false,
stencil: false, desynchronized: false } the context attributes can be set when creating the context using the htmlcanvaselement.getcontext() method: canvas.getcontext('webgl', { antialias: false, depth: false }); see getcontext() for more information about the individual attributes.
WebGLRenderingContext.texImage2D() - Web APIs
when using the webgl_depth_texture extension: gl.depth_component gl.depth_
stencil when using the ext_srgb extension: ext.srgb_ext ext.srgb_alpha_ext when using a webgl 2 context, the following values are available additionally: gl.r8 gl.r16f gl.r32f gl.r8ui gl.rg8 gl.rg16f gl.rg32f gl.rg8ui gl.rg16ui gl.rg32ui gl.rgb8 gl.srgb8 gl.rgb565 gl.r11f_g11f_b10f gl.rgb9_e5 gl.rgb16f g...