Note: Most implementations support maxAnisotropy values in range between 1 and 16, inclusive. The used value of maxAnisotropy will be clamped to the maximum value that the platform supports.
descriptor.maxAnisotropy ≥ 1
The spec currently only talks about clamping to the max value that the platform supports and that the min value is 1.
It looks to me like there is missing validation for making sure it's a power of two.
The spec currently only talks about clamping to the max value that the platform supports and that the min value is 1.
It looks to me like there is missing validation for making sure it's a power of two.