UNPKG

@types/three

Version:
43 lines (36 loc) 1.2 kB
import { Wrapping } from "../../constants.js"; import { Texture } from "../../textures/Texture.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. */ declare class Storage3DTexture extends Texture { /** * This defines how the texture is wrapped in the depth direction and corresponds to * *W* in UVW mapping. */ wrapR: Wrapping; /** * This flag can be used for type testing. * * @default true */ readonly isStorageTexture: true; /** * Indicates whether this texture is a 3D texture. */ is3DTexture: boolean; /** * Constructs a new storage texture. * * @param {number} [width=1] - The storage texture's width. * @param {number} [height=1] - The storage texture's height. * @param {number} [depth=1] - The storage texture's depth. */ constructor(width?: number, height?: number, depth?: number); setSize(width: number, height: number, depth: number): void; } export default Storage3DTexture;