MCPcopy Index your code
hub / github.com/plotly/plotly.js / lazyInitColorAttachments

Function lazyInitColorAttachments

stackgl_modules/index.js:14965–14978  ·  view source on GitHub ↗
(gl, ext)

Source from the content-addressed store, hash-verified

14963}
14964
14965function lazyInitColorAttachments(gl, ext) {
14966 var maxColorAttachments = gl.getParameter(ext.MAX_COLOR_ATTACHMENTS_WEBGL)
14967 colorAttachmentArrays = new Array(maxColorAttachments + 1)
14968 for(var i=0; i<=maxColorAttachments; ++i) {
14969 var x = new Array(maxColorAttachments)
14970 for(var j=0; j<i; ++j) {
14971 x[j] = gl.COLOR_ATTACHMENT0 + j
14972 }
14973 for(var j=i; j<maxColorAttachments; ++j) {
14974 x[j] = gl.NONE
14975 }
14976 colorAttachmentArrays[i] = x
14977 }
14978}
14979
14980//Throw an appropriate error
14981function throwFBOError(status) {

Callers 1

createFBOFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…