Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The read-only mipLevels
property of the XRCompositionLayer
interface is a layer's number of mip levels in the color and texture data. See also Mipmap on Wikipedia.
The desired number of mip levels can be specified when creating layers. However, if the user agent can't create the requested number, it can create less. Use mipLevels
to determine the actual number of mip levels for a layer.
The viewPixelWidth
and viewPixelHeight
need to be powers of two as they get successively halved at each mip level.