function testCloning(mode) { const gpu = new GPU({ mode }); const kernel = gpu.createKernel(function(value) { return value[0] + 1; }, { output: [1], pipeline: true }); const texture = kernel([1]); const { size } = texture; // set size to something unique, for tracking texture.size = [size[0] + 0.1, size[1] + 0.2]; texture.cloneTexture(); assert.equal(texture._framebuffer.width, size[0] + 0.1); assert.equal(texture._framebuffer.height, size[1] + 0.2); gpu.destroy(); }