I know this is not strictly optix related but I need to do mipmapping on a cubemap but it seems there is no textureCubeGrad function in CUDA. Why is that? Mipmapping seems to be quite essential for a lot of things unless you want to trace many, many rays.
Does anyone know how to manually calculate the proper lod level for a cubemap?
The texCubemapGrad() function is present inside the CUDA toolkit’s include\texture_fetch_functions.h header (at least in CUDA 10.2 and 11.0 where I looked.)
texCubemapGrad() and texCubemapLayeredGrad() are unfortunately still missing in the CUDA Programming Guide.
The bug report to add them already existed.