MCPcopy Index your code
hub / github.com/gre/gl-react / createNDArrayTexture

Function createNDArrayTexture

packages/tests/utils.js:378–386  ·  view source on GitHub ↗
(gl: WebGLRenderingContext, ndarray: *)

Source from the content-addressed store, hash-verified

376}
377
378export function createNDArrayTexture(gl: WebGLRenderingContext, ndarray: *) {
379 const texture = gl.createTexture();
380 gl.bindTexture(gl.TEXTURE_2D, texture);
381 // webgltexture-loader-ndarray@2.1.x signature: (gl, ndarray, floatSupported).
382 // The function operates on the currently-bound texture; we just bound `texture`.
383 const floatSupported = !!gl.getExtension("OES_texture_float_linear");
384 drawNDArrayTexture(gl, ndarray, floatSupported);
385 return texture;
386}
387class FakeTextureLoader extends WebGLTextureLoader<FakeTexture> {
388 textures: Array<WebGLTexture>;
389 constructor(gl: WebGLRenderingContext) {

Callers 3

all.jsFile · 0.90
renderWithResizeModeFunction · 0.90
getMethod · 0.85

Calls

no outgoing calls

Tested by 1

renderWithResizeModeFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…