Static
createCreates a GPUTexture from an image.
The GPUDevice to use for creating the texture.
The ITexture object containing the image source.
A Promise that resolves to the created GPUTexture.
Static
createCreates a HTMLVideoElement for video textures.
The GPUDevice.
The ITexture object containing the video source.
A Promise that resolves to the HTMLVideoElement.
Static
loadLoads an array of textures and returns an array of ITextureData.
The GPUDevice to use for creating textures.
Rest
...textures: IWGSLTexture[]An array of ITexture objects.
A Promise that resolves to an array of ITextureData.
A helper class for loading and creating textures for WebGPU.