GPU Texture Memory EstimateRGBA8 mip model · scale-texture.glb (A) · 3×5 px, NPOT true, 72 B

GLB Texture Memory — GPU RGBA8 Mipmap VRAM & NPOT Calculator

Measure embedded PNG, JPEG, WebP, and KTX2 BasisU texture dimensions to distinguish compressed download bytes from decoded RGBA8 mipmap GPU VRAM.

Drop a 3D model to explore & inspect it

GLB, glTF, STL, or 3MF · up to 100 MB · stays on your device

Have a multi-file .gltf? Select or drop its .bin and textures together.

Or explore an instant 3D sample
Verified Sample · CC0-1.0Sample file: scale-texture.glb (2.3 KB)

Verified Sample Result & Instant Demo

Try Sample File in 1 Click

How much GPU RGBA8 mipmap memory does the embedded texture in scale-texture.glb require? Header inspection measures a 3 × 5 PNG (NPOT = true, 3 mip levels: 3×5, 1×2, 1×1), yielding 60 bytes base RGBA8 and 72 bytes across the full mipmap chain.

Embedded Texture Size
3x5px
Non-Power-of-Two (NPOT)
trueadvisory
Computed Mip Levels
3levels
Est. RGBA8 Mip VRAM
72bytes
Cryptographic SHA-256 & Engine Provenance
Sample Input File
scale-texture.glb · 2392 bytes · CC0-1.0
Browser Codec Engine
gltf-validator 2.0.0-dev.3.10
Input SHA-256 Digest
26389145620bf15e530492643521f7ed613c451a3160b5ef23ef4ae39b1b36b8
Engine Artifact SHA-256
b73a7b2d455ac217567725138b46d826a13d7d1bb0c88c15f7c571bfb349298c
Reference Verification
ktx-parse + PNG IHDR 2.0.0
Schema & Preset ID
glb.glbvieweronline.glb-texture-memory.v1 · glb-rgba8-mip-vram · proj-glb-vram-npot

Why Small PNG/JPEG GLB Files Still Exhaust Mobile WebGL2 Texture VRAM

Compressed File Weight Versus Uncompressed RGBA8 GPU Allocation

A 4096 × 4096 JPEG albedo map or WebP normal map may add less than 900 KB to a .glb download, yet standard GPUs cannot sampleentropy-coded PNG, JPEG, or WebP bitstreams directly inside fragment shaders. At upload time, the browser decodes every pixel into 32-bit RGBA8 texels (4 bytes per pixel = 67.1 MB for one 4K map) and generates a trilinear mipmap pyramid adding roughly 33.3 percent more memory—pushing a single 4K PBR material set with baseColor, normal, metallicRoughness, and emissive maps past 350 MB of estimated VRAM.

Our Worker parses PNG IHDR chunks, JPEG SOF frame headers, WebP VP8/VP8L/VP8X headers, and KTX2 BasisU level directories directly from binary bufferViews without touching the main-thread WebGL context. For every resolved image, it sums exact integer mip dimensions floor(w / 2^L) × floor(h / 2^L) × 4 across all mip levels and contrasts that against GPU block-compressed BC7/ASTC KTX2 footprints.

  • Distinguishes estimated RGBA8 mip VRAM from actual driver-allocated memory clearly in every report.
  • Flags non-power-of-two (NPOT) dimensions as informational under WebGL2 while noting KTX2 4×4 block alignment rules.
  • Parses KTX2 vkFormat and supercompressionScheme headers via ktx-parse 2.0.0.

Understanding NPOT Advisories Under WebGL2

In scale-texture.glb, image 0 measures 3 × 5 pixels (base 60 B, mip levels 3×5 + 1×2 + 1×1 = 72 B). While WebGL2 natively supports mipmapping and REPEAT wrapping on NPOT textures, Basis Universal KTX2 encoders often require dimensions divisible by four, making early NPOT visibility valuable before texture compression.

Common Questions & Answers

Are non-power-of-two (NPOT) textures an error in WebGL2?

No. Under WebGL2, NPOT textures support full mipmaps and repeat samplers, so NPOT is surfaced as an informational advisory rather than a fatal error.

How much VRAM does converting PNG/JPEG textures to KTX2 BasisU typically save?

Transcoding KTX2 to BC7, ASTC, or ETC2 GPU block formats typically reduces runtime texture memory by 4x to 8x compared with decoded RGBA8 mip chains.

Why does the tool label VRAM numbers as "estimated" rather than "allocated"?

WebGL2 intentionally hides exact driver padding and internal GPU page allocations; summing exact mip-level texel dimensions provides a deterministic, reproducible engineering estimate.

100% Private In-Browser Processing

Verified local execution

  • Zero Cloud Uploads

    Your files stay on this device and are never sent to any remote server.

  • Instant Local Speed

    Runs directly on your device up to 100 MB with no upload queue.

  • No Account Needed

    Open a file, inspect your preview, and download immediately without signing up.

View Security Architecture
Execution Sandbox
Dedicated Web Worker
Post-Init Network
Locked (0 Egress)
Max File Budget
100 MB
Cross-Origin Isolation
Single-Thread WASM

After local WebAssembly initialization, Worker network APIs (fetch, XMLHttpRequest, WebSocket) are locked to prevent outbound data egress.