In shaders, when using SampleLevel
intrinsic, if we pass 0.5
in the mip level parameter, and the sampler is a point sampler
, what mip level is selected ?
According to this blog: https://blogs.msdn.microsoft.com/shawnhar/2009/09/14/texture-filtering-mipmaps/
It seems as if the coarser level of 1
is selected, so that would be a ceil
operation going on internally.
I still ask because the wording in the blog:
rounds up to the next larger mip level
Is open to interpretation, that could mean the larger in dimensions, therefore finer.
And honestly it feels that using ceil
is a very unfair convention for the mip 0
, which can only be selected with exactly 0.0
, poor thing.