Diligent Engine
Loading...
Searching...
No Matches
Diligent::RadientTextureDataSpan Struct Reference

Describes the valid readable span of RadientTextureData::pData. More...

#include <RadientTextureSource.hpp>

Public Attributes

Uint64 ActiveRowSize = 0
Uint32 RowCount = 0
 Number of stored source rows. For block-compressed formats, this is the number of block rows.
Uint64 DataSize = 0

Detailed Description

Describes the valid readable span of RadientTextureData::pData.

Member Data Documentation

◆ ActiveRowSize

Uint64 Diligent::RadientTextureDataSpan::ActiveRowSize = 0

Number of bytes in each row that contain texture data. Row padding, if any, is not included.

◆ DataSize

Uint64 Diligent::RadientTextureDataSpan::DataSize = 0

Minimum number of bytes that may be read from RadientTextureData::pData: (RowCount - 1) * Stride + ActiveRowSize. The final row does not need padding bytes beyond ActiveRowSize.