NVIDIA-RTX/RTXNTC

NVIDIA Neural Texture Compression SDK

What is RTX Neural Texture Compression (NTC)?

NTC is a texture compression algorithm that packs all the textures of a single 3D material (like albedo color, normals, roughness, metalness, etc.) into one compressed set. It can handle up to 16 texture channels; typical materials use 9–10.

Instead of storing pixel data directly, NTC stores:

  • Weights for a small neural network (called a decoder)
  • A tensor of latents (compact feature data)

At render time, the GPU samples the latents and runs them through the decoder to reconstruct the texture colors. This is fast enough to run directly in shaders (pixel shaders or ray-tracing hit shaders).

Key Modes

  • Inference on Load: Decompress textures when the game/map loads, converting them to standard block-compressed formats (BCn). Good for lower-end hardware.
  • Inference on Sample: Decompress directly in shaders at render time, saving VRAM.
  • Inference on Feedback: Uses Sampler Feedback to figure out which texture tiles are actually visible, then decompresses only those tiles into a sparse tiled texture.

Compression Rates

NTC is an adjustable-quality, constant-bitrate lossy scheme. You pick a "latent shape" (channel counts, bit depths, scale factor) that determines the per-texel bitrate. For a typical material (albedo + normal + roughness + metalness + ambient occlusion, 64 bits/texel raw), NTC achieves quality comparable to BCn (PSNR 40–50 dB) at about 5 bits/texel.

Example for a 2k×2k texture bundle:

Compression Disk Size PCI-E Traffic VRAM Size
Raw Image 32.00 MB 32.00 MB 32.00 MB
BCn Compressed 12.00 MB 12.00 MB 12.00 MB
NTC-on-Load* 2.50 MB 2.50 MB 12.00 MB
NTC-on-Sample 2.50 MB 2.50 MB 2.50 MB

*Assumes transcoding to BCn at decompression time.

Hardware Acceleration (Cooperative Vector)

Decompression runs a small neural network (MLP). NTC can use new Cooperative Vector hardware extensions:

  • Vulkan: VK_NV_cooperative_vector
  • Direct3D 12: Microsoft LinAlg (Shader Model 6.10, via a preview Agility SDK)

On Ada- and Blackwell-class NVIDIA GPUs, this gives 2–4× faster inference than non-accelerated implementations.

Fallback: DP4a instructions or regular integer math work on any Shader Model 6 GPU, just slower.

⚠️ Warning: The DX12 LinAlg path is pre-release and for testing only. It requires Windows Developer Mode, a preview NVIDIA driver (620.12+), and the preview Agility SDK. Do not ship products using it. The Vulkan CoopVec path and all non-CoopVec DX12 paths are fine for shipping.

SDK Contents

Component Purpose
LibNTC Core library: compression, decompression, BCn encoding
ntc-cli Command-line tool for compression/decompression
NTC Explorer Interactive app for experimenting with NTC settings
NTC Renderer Sample app showing NTC on a GLTF 3D scene
BCTest Test app for evaluating BCn encoders
ntc.py Python module for automation scripts
test.py Basic functional testing script
Materials / Model Example assets (materials + FlightHelmet model)

System Requirements

OS: Windows 10/11 x64, Windows 11 ARM64, Linux x64

Graphics APIs: DirectX 12 (with preview Agility SDK for LinAlg), Vulkan 1.3

GPU needs by task:

  • Decompression on load + BCn transcoding: Minimum = any Shader Model 6 GPU; Recommended = NVIDIA Turing (RTX 2000) or newer
  • Inference on sample: Minimum = any SM6 GPU (functional but slow); Recommended = NVIDIA Ada (RTX 4000) or newer
  • Compression: Minimum = NVIDIA Turing; Recommended = NVIDIA Ada or newer

Oldest validated GPUs: NVIDIA GTX 1000 series, AMD Radeon RX 6000 series, Intel Arc A series.

Cooperative Vector drivers: DX12 needs preview driver 620.12+; Vulkan needs driver 570+.

Known Issues (from README)

  • GDeflate decompression with VK_NV_memory_decompression on NVIDIA 590.26 preview driver crashes the GPU unless Nsight Aftermath is enabled.
  • DX12 mode on non-preview drivers may error (0x80070057); workaround: add --no-coopVec.
  • DX12 LinAlg is incompatible with current AMD developer preview drivers (26.10.07.02).
  • Inference on Feedback mode in the Renderer sample is broken on AMD GPUs.

Building

Supported: Windows x64, Windows ARM64, Linux x64.

Windows x64 needs: Visual Studio 2022, Windows SDK, CMake, CUDA SDK. Build with CMake (standard flow).

Windows ARM64 (e.g., NVIDIA RTX Spark): same as x64 plus ARM64 C++ tools and CUDA 13.4 for ARM64 (developer preview). DLSS and OptiX are disabled automatically on ARM64.

Linux x64 needs: C++ compiler (GCC 12.2 or Clang 16), CMake, CUDA SDK, plus X11 dev packages. Build with CMake.

Integration

  • LibNTC provides everything needed: compress, serialize/deserialize, decompress, GPU-based BCn encoder, and a shader library for sample-time decompression.
  • ntc-cli can be scripted into content pipelines. It accepts a Bundle Manifest File that describes image paths, semantics, formats, and transcoding targets.

Documentation covers: library initialization, compression (LibNTC or CLI), decompression (on load, on sample, on feedback), and BCn transcoding.

Support & License

Summary

NTC is a neural-network-based texture compression SDK that dramatically reduces texture memory footprint (e.g., 32 MB → 2.5 MB for a typical material bundle) while maintaining visual quality comparable to standard BCn compression. It offers flexible deployment modes (load-time, sample-time, feedback-based) and leverages new GPU hardware acceleration where available, with software fallbacks for older hardware.

Related

  • Project
  • Project
  • Project
  • Project
  • Project