Buckets:
| import { Texture } from '../../textures/Texture.js'; | |
| import { LinearFilter } from '../../constants.js'; | |
| /** | |
| * This special type of texture is intended for compute shaders. | |
| * It can be used to compute the data of a texture with a compute shader. | |
| * | |
| * Note: This type of texture can only be used with `WebGPURenderer` | |
| * and a WebGPU backend. | |
| * | |
| * @augments Texture | |
| */ | |
| class StorageTexture extends Texture { | |
| /** | |
| * Constructs a new storage texture. | |
| * | |
| * @param {number} [width=1] - The storage texture's width. | |
| * @param {number} [height=1] - The storage texture's height. | |
| */ | |
| constructor( width = 1, height = 1 ) { | |
| super(); | |
| /** | |
| * The image object which just represents the texture's dimension. | |
| * | |
| * @type {{width: number, height: number}} | |
| */ | |
| this.image = { width, height }; | |
| /** | |
| * The default `magFilter` for storage textures is `THREE.LinearFilter`. | |
| * | |
| * @type {number} | |
| */ | |
| this.magFilter = LinearFilter; | |
| /** | |
| * The default `minFilter` for storage textures is `THREE.LinearFilter`. | |
| * | |
| * @type {number} | |
| */ | |
| this.minFilter = LinearFilter; | |
| /** | |
| * This flag can be used for type testing. | |
| * | |
| * @type {boolean} | |
| * @readonly | |
| * @default true | |
| */ | |
| this.isStorageTexture = true; | |
| } | |
| } | |
| export default StorageTexture; | |
Xet Storage Details
- Size:
- 1.29 kB
- Xet hash:
- becd7b3d3189e6e29f916308494a78195fb887dc9635d7fab434187db313b4b7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.