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:

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).

Static variables

staticinline read onlyCOLOR_ATTACHMENT0_WEBGL:Int = 36064

staticinline read onlyCOLOR_ATTACHMENT10_WEBGL:Int = 36074

staticinline read onlyCOLOR_ATTACHMENT11_WEBGL:Int = 36075

staticinline read onlyCOLOR_ATTACHMENT12_WEBGL:Int = 36076

staticinline read onlyCOLOR_ATTACHMENT13_WEBGL:Int = 36077

staticinline read onlyCOLOR_ATTACHMENT14_WEBGL:Int = 36078

staticinline read onlyCOLOR_ATTACHMENT15_WEBGL:Int = 36079

staticinline read onlyCOLOR_ATTACHMENT1_WEBGL:Int = 36065

staticinline read onlyCOLOR_ATTACHMENT2_WEBGL:Int = 36066

staticinline read onlyCOLOR_ATTACHMENT3_WEBGL:Int = 36067

staticinline read onlyCOLOR_ATTACHMENT4_WEBGL:Int = 36068

staticinline read onlyCOLOR_ATTACHMENT5_WEBGL:Int = 36069

staticinline read onlyCOLOR_ATTACHMENT6_WEBGL:Int = 36070

staticinline read onlyCOLOR_ATTACHMENT7_WEBGL:Int = 36071

staticinline read onlyCOLOR_ATTACHMENT8_WEBGL:Int = 36072

staticinline read onlyCOLOR_ATTACHMENT9_WEBGL:Int = 36073

staticinline read onlyDRAW_BUFFER0_WEBGL:Int = 34853

staticinline read onlyDRAW_BUFFER10_WEBGL:Int = 34863

staticinline read onlyDRAW_BUFFER11_WEBGL:Int = 34864

staticinline read onlyDRAW_BUFFER12_WEBGL:Int = 34865

staticinline read onlyDRAW_BUFFER13_WEBGL:Int = 34866

staticinline read onlyDRAW_BUFFER14_WEBGL:Int = 34867

staticinline read onlyDRAW_BUFFER15_WEBGL:Int = 34868

staticinline read onlyDRAW_BUFFER1_WEBGL:Int = 34854

staticinline read onlyDRAW_BUFFER2_WEBGL:Int = 34855

staticinline read onlyDRAW_BUFFER3_WEBGL:Int = 34856

staticinline read onlyDRAW_BUFFER4_WEBGL:Int = 34857

staticinline read onlyDRAW_BUFFER5_WEBGL:Int = 34858

staticinline read onlyDRAW_BUFFER6_WEBGL:Int = 34859

staticinline read onlyDRAW_BUFFER7_WEBGL:Int = 34860

staticinline read onlyDRAW_BUFFER8_WEBGL:Int = 34861

staticinline read onlyDRAW_BUFFER9_WEBGL:Int = 34862

staticinline read onlyMAX_COLOR_ATTACHMENTS_WEBGL:Int = 36063

staticinline read onlyMAX_DRAW_BUFFERS_WEBGL:Int = 34852