when baselevel !=0, I saw the vulkan spec said:
OpImageQueryLod returns the Lod parameters that would be used in an image operation with the given image and coordinates. The steps described in this chapter are performed as if for OpImageSampleImplicitLod, up to [Scale Factor Operation, LOD Operation and Image Level(s) Selection](https://registry.khronos.org/vulkan/specs/1.3/html/chap16.html#textures-lod-and-scale-factor). The return value is the vector (λ', dl). These values may be subject to implementation-specific maxima and minima for very large, out-of-range values.
so it should add baselevel value according to the vulkan spec.
but when i test on nvidia and amd gpu, the return value is relative to baselevel ,which means that it won’t be added by baselevel.
For example:
If the calculated lod is 0.4 relative to baselevel and baselevel equals 2 and mipmapfilter is nearest, the op should return(2,0.4) according to the vulkan spec. But on gpu, i got a (0,0.4) as return value.