Inheritance: EventDispatcher → Texture →
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.
Constructs a new storage texture.
width
The storage texture's width.
Default is 1.
height
The storage texture's height.
Default is 1.
The image object which just represents the texture's dimension.
Overrides: Texture#image
This flag can be used for type testing.
Default is true.
The default magFilter for storage textures is THREE.LinearFilter.
Overrides: Texture#magFilter
The default minFilter for storage textures is THREE.LinearFilter.
Overrides: Texture#minFilter
When true, mipmaps will be auto-generated after compute writes. When false, mipmaps must be written manually via compute shaders.
Default is true.
Sets the size of the storage texture.
width
The new width of the storage texture.
height
The new height of the storage texture.