Overview
My MSc Games Engineering dissertation, awarded a Distinction. Neural texture compression stores a material as small latent grids plus a tiny network, which saves memory. But that network is blind to how large the screen pixel's footprint is on the texture, so at far and grazing angles it can't filter properly and the surface shimmers and aliases, exactly where hardware anisotropic filtering does its best work. Netra tells the decoder the footprint, so one network evaluation returns an already-filtered texel. I built the whole thing: a PyTorch training pipeline, a DirectX 12 renderer to switch filtering paths live, a benchmark harness and a script that recomputes every headline number from the raw results.
What I built
- Footprint-conditioned decoder A 6,211-parameter network that takes the anisotropic EWA footprint and level of detail, so one evaluation (6,080 multiply-adds) returns a filtered texel. Decoding 8 or 16 taps and filtering afterwards costs 8 to 16× the work for a similar gain.
- Training pipeline PyTorch on CUDA trains and packs whole PBR materials (albedo, normal, roughness, AO): a 23-material sweep, 3 seeds each, against a parameter-matched blind control.
- DirectX 12 renderer C++23, HLSL shader model 6.6, bindless. Switch live between hardware trilinear, 16× anisotropic, a 256-tap reference, a cached neural path and inline neural decode in tiny, int8 and full precision.
- GPU optimisation The int8 decoder uses packed dot4add_i8packed maths: 2.1× faster than scalar integer code. int8 weights are 3.2× smaller than fp32 for −0.002 dB.
- Benchmark harness Times every path along a camera path with GPU timestamp queries, captures every path for PSNR, SSIM and FLIP, and checks them against the 256-tap reference.
- Reproducible A verify script recomputes every headline number in the dissertation from the raw result files, and all checks pass. Also an ImGui editor, a glTF loader and an SM 6.10 cooperative-vector microbenchmark. About 29,000 lines of my own code.
Results
Hard parts
- Proving the gain is real, not luck: paired seeds, a parameter-matched control and confidence intervals. +5.64 dB at grazing views, 95% interval 5.49 to 5.79.
- Keeping the neural path cheap: the cached path runs at 0.70 ms per megapixel, next to hardware 16× anisotropic filtering at 0.62.
Limits
- The +5.64 dB is against a same-size blind neural decoder, not hardware filtering. On raw quality, hardware 16× anisotropic filtering still wins in the renderer (46.1 vs 40–44 dB on the measured frame).
- BC7 at 768 px beats the tiny decoder in its own domain by 0.13 dB.
- Memory depends on the path: the inline paths hold 38–76 MB, the cached one 1.1 GB.
- It's a Windows / DirectX 12 prototype, not a shipped engine feature.







