How to use the copyImageSubData function from bindings

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

136
137
138
139
140
141
142
143
144
145
146
    throw new TypeError('Expected textureSubImage2D(WebGLTexture texture, number level, number xoff, number yoff, number width, number height, number format, number type, pixels)');
  }
  return _textureSubImage2D(texture._, level, xoff, yoff, width, height, format, type, pixels);
}


var _copyImageSubData = gl.copyImageSubData;
gl.copyImageSubData = function copyImageSubData(srcTex, srcTarget, srcLevel, srcX, srcY, srcZ, dstTex, dstTarget, dstLevel, dstX, dstY, dstZ, sizeX, sizeY, sizeZ) {
  if (!(arguments.length === 15 && (srcTex instanceof gl.WebGLTexture) && (dstTex instanceof gl.WebGLTexture))) {
    throw new TypeError('Expected copyImageSubData(WebGLTexture srcTex, srcTarget, srcLevel, srcX, srcY, srcZ, WebGLTexture dstTex, dstLevel, dstTarget, dstLevel, dstX, dstY, dstZ, sizeX, sizeY, sizeZ)');
  }
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)