Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The CPixel::ComputeMipVolumeSize method determines the amount of memory required to allocate a mipmap texture volume.
static UINT ComputeMipVolumeSize(
UINT cpWidth,
UINT cpHeight,
UINT cpDepth,
UINT cLevels,
D3DFORMAT Format
);
cpWidth Specifies the width in pixels of the mipmap volume.
cpHeight Specifies the height in pixels of the mipmap volume.
cpDepth Specifies the depth in pixels of the mipmap volume.
cLevels Specifies the number of levels of the mipmap volume texture.
Format Uses a value from the D3DFORMAT enumeration to specify the surface format.
Returns the size, in bytes, of the mipmap volume.
For more information about D3DFORMAT, see the Microsoft DirectX SDK documentation.
Target platform |
Desktop |
Header |
Pixel.hpp (include Pixel.hpp) |