download
raw
603 Bytes
import { Texture } from './Texture.js';
import { NearestFilter } from '../constants.js';
class DataTexture extends Texture {
constructor( data = null, width = 1, height = 1, format, type, mapping, wrapS, wrapT, magFilter = NearestFilter, minFilter = NearestFilter, anisotropy, colorSpace ) {
super( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, colorSpace );
this.isDataTexture = true;
this.image = { data: data, width: width, height: height };
this.generateMipmaps = false;
this.flipY = false;
this.unpackAlignment = 1;
}
}
export { DataTexture };

Xet Storage Details

Size:
603 Bytes
·
Xet hash:
19c0bbe71f82467d7ce39a844d0d9ebdc6a87b6e5f6ba5c4e409e94c56bf1fc5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.