Deep Dive into GPU Mipmap Level Selection
2025-05-14
This post delves into the intricate details of mipmap level selection during texture sampling on the GPU. Starting with texture aliasing, the author explains mipmapping and the role of pixel derivatives (ddx()/ddy()). By analyzing the GLES3.0 and DirectX 11.3 specifications and experimental results, the author reveals the complexities of the relationship between mipmap level selection and pixel derivatives, as well as the differences in implementation across various GPU vendors. The article further explores the impact of elliptical transformations and anisotropic filtering on mipmap level selection, providing corresponding software implementations and comparing them to hardware implementations.
(pema.dev)