Optional dimensionTextue dimension. Defaults to D2.
Optional formatFormat of the texture. Defaults to RGBA8.
Optional mipThe number of mipmap levels. Defaults to 1.
Optional sampleThe number of samples for MSAA render targets. Defaults to 1.
Optional sizeSize of texture. Defaults to [1, 1, 1].
Optional usageSpecifies the usage of the texture. Defaults to TextureBinding.
Generated using TypeDoc
Descriptor of a Texture.
See
https://www.w3.org/TR/webgpu/#texture-creation