Tesla Graphics Engine Documentation (January 2012)
CalculateMipSize Method (width, height, depth, mipLevel, format)
TeslaTesla.UtilMemUtilsCalculateMipSize(Int32, Int32, Int32, Int32, SurfaceFormat)
Calculate the size of the mip level. Use this to compute the actual size of a sub-resource that uses a compression format.
Declaration Syntax
public static int CalculateMipSize(
	int width,
	int height,
	int depth,
	int mipLevel,
	SurfaceFormat format
width (Int32)
Width of the first mip level
height (Int32)
Height of the first mip level
depth (Int32)
Depth of the first mip level
mipLevel (Int32)
Mip level to access
format (SurfaceFormat)
Format of the resource
Return Value
Total size of the sub-resource in bytes

Assembly: Tesla (Module: Tesla) Version: (