How to use the framebufferTextureLayer function from bindings

Find comprehensive JavaScript bindings.framebufferTextureLayer code examples handpicked from public code repositorys.

600
601
602
603
604
605
606
607
608
609
610
    throw new TypeError('Expected framebufferTexture2D(number target, number attachment, number textarget, WebGLTexture texture, number level)');
  }
  return _framebufferTexture2D(target, attachment, textarget, texture ? texture._ : 0, level);
}


var _framebufferTextureLayer = gl.framebufferTextureLayer;
gl.framebufferTextureLayer = function framebufferTextureLayer(target, attachment, texture, level, layer) {
  if (!(arguments.length === 5 && typeof target === "number" && typeof attachment === "number" && typeof layer === "number" && (texture === null || texture instanceof gl.WebGLTexture) && typeof level === "number")) {
    throw new TypeError('Expected framebufferTextureLayer(number target, number attachment, WebGLTexture texture, number level, number layer)');
  }
fork icon0
star icon0
watch icon0

+ 137 other calls in file

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)