What is Inference on Sample and when to use it
mainInference on Sample is a mode where NTC decompression logic is executed directly within a pixel or ray tracing shader to decompress only the specific texels needed for a view.
Key Characteristics:
- Performance: Decompressing texels is computationally expensive compared to regular sampling. It returns one unfiltered texel with all material channels at a time.
- Hardware Requirements: It should ideally be used on high-performance GPUs supporting Cooperative Vector (CoopVec) extensions. While a DP4a fallback exists, it is significantly slower and intended only for functional validation.
- Filtering: Because simulating trilinear or anisotropic filtering is prohibitively expensive, Inference on Sample should be used in conjunction with Stochastic Texture Filtering (STF), followed by denoising or DLSS after shading.