download
raw
544 Bytes
import { Texture } from './Texture.js';
import { ClampToEdgeWrapping, NearestFilter } from '../constants.js';
class DataArrayTexture extends Texture {
constructor( data = null, width = 1, height = 1, depth = 1 ) {
super( null );
this.isDataArrayTexture = true;
this.image = { data, width, height, depth };
this.magFilter = NearestFilter;
this.minFilter = NearestFilter;
this.wrapR = ClampToEdgeWrapping;
this.generateMipmaps = false;
this.flipY = false;
this.unpackAlignment = 1;
}
}
export { DataArrayTexture };

Xet Storage Details

Size:
544 Bytes
·
Xet hash:
ef7f4175581e7de28074ec05995378fa3337e07ecd7e5da4bd73b4db14bdfdd6

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