1234567891011121314151617181920212223242526272829303132 |
- import { ClampToEdgeWrapping } from '../constants.js';
- import { CompressedTexture } from './CompressedTexture.js';
- class CompressedArrayTexture extends CompressedTexture {
- constructor( mipmaps, width, height, depth, format, type ) {
- super( mipmaps, width, height, format, type );
- this.isCompressedArrayTexture = true;
- this.image.depth = depth;
- this.wrapR = ClampToEdgeWrapping;
- this.layerUpdates = new Set();
- }
- addLayerUpdates( layerIndex ) {
- this.layerUpdates.add( layerIndex );
- }
- clearLayerUpdates() {
- this.layerUpdates.clear();
- }
- }
- export { CompressedArrayTexture };
|