How to use the textureSubImage2D function from bindings

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

127
128
129
130
131
132
133
134
135
136
    //console.log([target, texture, texture instanceof gl.WebGLTexture])
    throw new TypeError('Expected textureStorage3D(WebGLTexture texture, number levels, number internalFormat, number width, number height, number depth)');
  }
  return _textureStorage3D(texture._, levels, internalFormat, width, height, depth);
}
var _textureSubImage2D = gl.textureSubImage2D;
gl.textureSubImage2D = function textureSubImage2D(texture, level, xoff, yoff, width, height, format, type, pixels) {
  if (!(arguments.length === 9 && (texture instanceof gl.WebGLTexture) && typeof level === 'number' && typeof format === 'number' && typeof width === 'number' && typeof height === 'number')) {
    //console.log([target, texture, texture instanceof gl.WebGLTexture])
    throw new TypeError('Expected textureSubImage2D(WebGLTexture texture, number level, number xoff, number yoff, number width, number height, number format, number type, pixels)');
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)