Function: gridLimitsOfGpuSettings()
gridLimitsOfGpuSettings(
gpuSettings,bytesPerVoxel):VoxelGridLimits
The limits of one grid under some GPU settings.
maxEdge is the limit on one axis. maxVoxelCount comes from the texture
memory and from the width of one voxel: a texture that the texture memory
cannot hold cannot work, whatever its shape. "The texture is too large" and
"there is not sufficient memory" give the same result to the user, so one
mechanism covers the two causes.
Parameters
• gpuSettings: GpuSettings
the settings that apply
• bytesPerVoxel: number
the number of bytes of one voxel of the texture
Returns
the limits that a grid must respect