Creates a Loader instance associated with a GPUDevice.
Standard WebGPU device interface.
Fetches and delegates parsing of a 3D model file to the first compatible parser.
The web address of the 3D model asset.
A Promise resolving to format-agnostic ModelData.
Fetches and compiles a WGSL shader code file from a URL.
Web address pointing to the WGSL shader file.
A Promise resolving to a GPUShaderModule.
Fetches an image file, decodes it into an ImageBitmap, and uploads it to WebGPU VRAM.
Web address pointing to the image resource.
Custom configuration format and texture usage flags.
A Promise resolving to an allocated GPUTexture.
Prepend a custom ModelParser instance to the internal parser list. Allows custom formats (e.g. FBX, Collada) to take loading precedence.
The ModelParser implementation.
Loader class fetches, decodes, and manages 3D assets, textures, and shader modules. Extensible through pluggable ModelParser registration.