Home -> ITextureBuffer -> CellSizeInBytesFromFormat

Description

The CellSizeInBytesFromFormat method returns the byte size of each encoded cell for the specified image and data format combination.

Usage

constexpr static size_t CellSizeInBytesFromFormat(SourceImageFormat imageFormat, SourceDataFormat dataFormat);
constexpr static size_t CellSizeInBytesFromFormat(ImageFormat imageFormat, DataFormat dataFormat);

Argument list

imageFormat [SourceImageFormat]
The image format to query.
dataFormat [SourceDataFormat]
The data format to query.

Return value

[constexpr static size_t]
The byte size of one encoded texture cell for the specified image and data format combination.

See also