loaders.gl support
| Type | API |
|---|---|
| Loader | CompressedTextureLoader |
Portable texture delivery
Package once. Choose the GPU target at runtime.
Containers preserve dimensions and mip levels; portable payloads delay the final format choice until the application knows what the current device supports.
Distributed asset
Runtime choice
metadata · levels · capabilities
Renderer receives
The application keeps one asset pipeline while the renderer receives the representation its WebGL or WebGPU device can use efficiently.
GPU texture path
Decode the container, choose the runtime format later.
The loader preserves mip levels and canonical format metadata while leaving device-specific upload and fallback decisions to the consuming application or graphics framework.
Container
PVR headers, dimensions, levels, and compressed payloads.
Decode
Read each mip level as TextureLevel data.
Describe
Map recognized formats to canonical texture identifiers.
Upload
Hand levels to the GPU-oriented texture runtime.
Detailed guide
PVR format and API details
The reference below covers the PVR container, mip levels, format tagging, and the shared compressed-texture loader path.
@loaders.gl/images- loaders.gl implementationCompressedTextureLoader- reads PVR containers
PVR is the PowerVR texture container format. It is associated with Imagination Technologies' PowerVR ecosystem and is commonly seen in mobile texture workflows.
The container can store compressed texture payloads together with mipmaps and texture metadata.
Why It Is Used
PVR is commonly encountered in:
- PowerVR-oriented mobile pipelines
- PVRTC texture workflows
- offline-generated mipmapped texture assets
loaders.gl Support
| Format Feature | loaders.gl Support | Notes |
|---|---|---|
| PVR container parsing | ✅ Yes | Supported by CompressedTextureLoader. |
| Mip level extraction | ✅ Yes | Returned as TextureLevel[]. |
| PVRTC and related format tagging | ✅ Yes | loaders.gl maps recognized formats to canonical texture format identifiers. |
| Direct GPU upload workflows | ✅ Yes | Output is designed for GPU upload by consuming frameworks and applications. |