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

@:value(36064)staticinlineread onlyCOLOR_ATTACHMENT0_WEBGL:Int = 36064

A GLenum specifying a color buffer.

@:value(36074)staticinlineread onlyCOLOR_ATTACHMENT10_WEBGL:Int = 36074

@:value(36075)staticinlineread onlyCOLOR_ATTACHMENT11_WEBGL:Int = 36075

@:value(36076)staticinlineread onlyCOLOR_ATTACHMENT12_WEBGL:Int = 36076

@:value(36077)staticinlineread onlyCOLOR_ATTACHMENT13_WEBGL:Int = 36077

@:value(36078)staticinlineread onlyCOLOR_ATTACHMENT14_WEBGL:Int = 36078

@:value(36079)staticinlineread onlyCOLOR_ATTACHMENT15_WEBGL:Int = 36079

@:value(36065)staticinlineread onlyCOLOR_ATTACHMENT1_WEBGL:Int = 36065

@:value(36066)staticinlineread onlyCOLOR_ATTACHMENT2_WEBGL:Int = 36066

@:value(36067)staticinlineread onlyCOLOR_ATTACHMENT3_WEBGL:Int = 36067

@:value(36068)staticinlineread onlyCOLOR_ATTACHMENT4_WEBGL:Int = 36068

@:value(36069)staticinlineread onlyCOLOR_ATTACHMENT5_WEBGL:Int = 36069

@:value(36070)staticinlineread onlyCOLOR_ATTACHMENT6_WEBGL:Int = 36070

@:value(36071)staticinlineread onlyCOLOR_ATTACHMENT7_WEBGL:Int = 36071

@:value(36072)staticinlineread onlyCOLOR_ATTACHMENT8_WEBGL:Int = 36072

@:value(36073)staticinlineread onlyCOLOR_ATTACHMENT9_WEBGL:Int = 36073

@:value(34853)staticinlineread onlyDRAW_BUFFER0_WEBGL:Int = 34853

A GLenum returning a draw buffer.

@:value(34863)staticinlineread onlyDRAW_BUFFER10_WEBGL:Int = 34863

@:value(34864)staticinlineread onlyDRAW_BUFFER11_WEBGL:Int = 34864

@:value(34865)staticinlineread onlyDRAW_BUFFER12_WEBGL:Int = 34865

@:value(34866)staticinlineread onlyDRAW_BUFFER13_WEBGL:Int = 34866

@:value(34867)staticinlineread onlyDRAW_BUFFER14_WEBGL:Int = 34867

@:value(34868)staticinlineread onlyDRAW_BUFFER15_WEBGL:Int = 34868

@:value(34854)staticinlineread onlyDRAW_BUFFER1_WEBGL:Int = 34854

@:value(34855)staticinlineread onlyDRAW_BUFFER2_WEBGL:Int = 34855

@:value(34856)staticinlineread onlyDRAW_BUFFER3_WEBGL:Int = 34856

@:value(34857)staticinlineread onlyDRAW_BUFFER4_WEBGL:Int = 34857

@:value(34858)staticinlineread onlyDRAW_BUFFER5_WEBGL:Int = 34858

@:value(34859)staticinlineread onlyDRAW_BUFFER6_WEBGL:Int = 34859

@:value(34860)staticinlineread onlyDRAW_BUFFER7_WEBGL:Int = 34860

@:value(34861)staticinlineread onlyDRAW_BUFFER8_WEBGL:Int = 34861

@:value(34862)staticinlineread onlyDRAW_BUFFER9_WEBGL:Int = 34862

@:value(36063)staticinlineread onlyMAX_COLOR_ATTACHMENTS_WEBGL:Int = 36063

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

@:value(34852)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).