CPixel::ComputeMipMapSize method
The CPixel::ComputeMipMapSize method determines the amount of memory required to allocate a mipmap texture.
Syntax
static UINT ComputeMipMapSize(
UINT cpWidth,
UINT cpHeight,
UINT cLevels,
D3DFORMAT Format
);
Parameters
cpWidth Specifies the width in pixels of the mipmap texture.
cpHeight Specifies the height in pixels of the mipmap texture.
cLevels Specifies the number of levels of the mipmap texture.
Format Uses a value from the D3DFORMAT enumeration to specify the surface format.
Return value
Returns the size, in bytes, of the mipmap texture.
Remarks
For more information about D3DFORMAT, see the Microsoft DirectX SDK documentation.
Requirements
Target platform |
Desktop |
Header |
Pixel.hpp (include Pixel.hpp) |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for