Closed Lucas5a4d closed 2 weeks ago
I'm confused. Why is this a SPIRV-Cross question? Did you intend to post this to https://github.com/KhronosGroup/Vulkan-Docs/ instead? OpImageQueryLod is relative to base level I'm pretty sure. Sounds like a spec bug to me.
I've created an internal spec issue for this. No need to create one on public repo as well.
Ok,Thanks!
Closing this as it has no relevance to SPIRV-Cross.
@HansKristian-Work Have you come to a conclusion as to whether this is a bug? If you come to a conclusion, please tell me,thanks!
@Lucas5a4d Confirming, this is a bug. Thanks for flagging it! Hans-Kristian is working on a fix internally.
when baselevel !=0, I saw the vulkan spec said:
and
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.