W3cubDocs

/Haxe JavaScript

WEBGLDrawBuffers

package js.html.webgl.extension

Available on js

The WEBGL_draw_buffers extension is part of the WebGL API and enables a fragment shader to write to several textures, which is useful for deferred shading, for example.

Documentation WEBGL_draw_buffers by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Static variables

staticinlineread onlyCOLOR_ATTACHMENT0_WEBGL:Int = 36064

A GLenum specifying a color buffer.

staticinlineread onlyCOLOR_ATTACHMENT10_WEBGL:Int = 36074

staticinlineread onlyCOLOR_ATTACHMENT11_WEBGL:Int = 36075

staticinlineread onlyCOLOR_ATTACHMENT12_WEBGL:Int = 36076

staticinlineread onlyCOLOR_ATTACHMENT13_WEBGL:Int = 36077

staticinlineread onlyCOLOR_ATTACHMENT14_WEBGL:Int = 36078

staticinlineread onlyCOLOR_ATTACHMENT15_WEBGL:Int = 36079

staticinlineread onlyCOLOR_ATTACHMENT1_WEBGL:Int = 36065

staticinlineread onlyCOLOR_ATTACHMENT2_WEBGL:Int = 36066

staticinlineread onlyCOLOR_ATTACHMENT3_WEBGL:Int = 36067

staticinlineread onlyCOLOR_ATTACHMENT4_WEBGL:Int = 36068

staticinlineread onlyCOLOR_ATTACHMENT5_WEBGL:Int = 36069

staticinlineread onlyCOLOR_ATTACHMENT6_WEBGL:Int = 36070

staticinlineread onlyCOLOR_ATTACHMENT7_WEBGL:Int = 36071

staticinlineread onlyCOLOR_ATTACHMENT8_WEBGL:Int = 36072

staticinlineread onlyCOLOR_ATTACHMENT9_WEBGL:Int = 36073

staticinlineread onlyDRAW_BUFFER0_WEBGL:Int = 34853

A GLenum returning a draw buffer.

staticinlineread onlyDRAW_BUFFER10_WEBGL:Int = 34863

staticinlineread onlyDRAW_BUFFER11_WEBGL:Int = 34864

staticinlineread onlyDRAW_BUFFER12_WEBGL:Int = 34865

staticinlineread onlyDRAW_BUFFER13_WEBGL:Int = 34866

staticinlineread onlyDRAW_BUFFER14_WEBGL:Int = 34867

staticinlineread onlyDRAW_BUFFER15_WEBGL:Int = 34868

staticinlineread onlyDRAW_BUFFER1_WEBGL:Int = 34854

staticinlineread onlyDRAW_BUFFER2_WEBGL:Int = 34855

staticinlineread onlyDRAW_BUFFER3_WEBGL:Int = 34856

staticinlineread onlyDRAW_BUFFER4_WEBGL:Int = 34857

staticinlineread onlyDRAW_BUFFER5_WEBGL:Int = 34858

staticinlineread onlyDRAW_BUFFER6_WEBGL:Int = 34859

staticinlineread onlyDRAW_BUFFER7_WEBGL:Int = 34860

staticinlineread onlyDRAW_BUFFER8_WEBGL:Int = 34861

staticinlineread onlyDRAW_BUFFER9_WEBGL:Int = 34862

staticinlineread onlyMAX_COLOR_ATTACHMENTS_WEBGL:Int = 36063

A GLint indicating the maximum number of framebuffer color attachment points.

staticinlineread onlyMAX_DRAW_BUFFERS_WEBGL:Int = 34852

A GLint indicating the maximum number of draw buffers.

Methods

drawBuffersWEBGL(buffers:Array<Int>):Void

Defines the draw buffers to which all fragment colors are written. (When using WebGL2RenderingContext, this method is available as WebGL2RenderingContext.drawBuffers() by default).

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/webgl/extension/WEBGLDrawBuffers.html