gpu.js
Version:
GPU Accelerated JavaScript
16 lines (14 loc) • 391 B
JavaScript
const { utils } = require('../../../utils');
const { GLTextureUnsigned } = require('./unsigned');
class GLTextureUnsigned2D extends GLTextureUnsigned {
constructor(settings) {
super(settings);
this.type = 'NumberTexture';
}
toArray() {
return utils.erect2DPackedFloat(this.renderValues(), this.output[0], this.output[1]);
}
}
module.exports = {
GLTextureUnsigned2D
};