Home -> ITexelArray -> ElementCountPerPixelFromFormat

Description

The ElementCountPerPixelFromFormat method returns the number of elements in each array entry for the specified image format.

Usage

constexpr static size_t ElementCountPerPixelFromFormat(SourceImageFormat imageFormat);
constexpr static size_t ElementCountPerPixelFromFormat(ImageFormat imageFormat);

Argument list

imageFormat [SourceImageFormat]
The image format to query.

Return value

[constexpr static size_t]
The number of scalar elements contained in each pixel or texel entry for the specified image format.

See also