num_blocks_y and num_blocks_z are required to be at least 1 block, which is useful for non-square textures.
Shouldn't num_blocks_x be at least 1 block too ?
For instance, given the texture dimension (pixelWidth, pixelHeight, pixelDepth) = (256, 512, 1) :
The maximum level p can be log2(512) = 9.
At this level, there should be num_blocks_(x, y, z) = (1, 1, 1).
Yet, the definitions give num_blocks_(x, y, z) = (0, 1, 1).
Hello,
In the
2. File Structure
section, the following definitions are given for the number of blocks for a given mip levelp
.num_blocks_y
andnum_blocks_z
are required to be at least 1 block, which is useful for non-square textures. Shouldn'tnum_blocks_x
be at least 1 block too ?For instance, given the texture dimension
(pixelWidth, pixelHeight, pixelDepth) = (256, 512, 1)
: The maximum levelp
can belog2(512) = 9
. At this level, there should benum_blocks_(x, y, z) = (1, 1, 1)
. Yet, the definitions givenum_blocks_(x, y, z) = (0, 1, 1)
.