![]() |
XII Release 0.1.0
|
This describes the mip level properties. More...
#include <TextureUtilities.h>
Public Member Functions | |
| XII_DECLARE_POD_TYPE () | |
Public Member Functions inherited from xiiHashableStruct< xiiGALMipLevelProperties > | |
| constexpr | xiiHashableStruct () noexcept |
| Default constructor. Initializes all bytes to zero. | |
| xiiHashableStruct (const xiiHashableStruct &other) noexcept | |
| Bitwise copy constructor. | |
| xiiHashableStruct & | operator= (const xiiHashableStruct &other) noexcept |
| Bitwise assignment operator. | |
| bool | operator== (const xiiHashableStruct &other) const noexcept |
| Compares equality via raw byte comparison. | |
| std::strong_ordering | operator<=> (const xiiHashableStruct &other) const noexcept |
| Compares ordering via raw byte comparison. | |
| xiiUInt32 | CalculateHash () const noexcept |
| Calculates a 32-bit hash from raw bytes of the struct. | |
| void | Clear () noexcept |
| Fills all bytes with zero. | |
| bool | IsZero () const noexcept |
| Returns true if all bytes are zero. | |
Public Attributes | |
| xiiSizeU32 | m_LogicalSize = xiiSizeU32(0, 0) |
| The logical mip width and height. | |
| xiiSizeU32 | m_StorageSize = xiiSizeU32(0, 0) |
| The storage mip width and height. For compressed formats, storage width and height are rounded up to the block size. For example, for a texture mip with logical width or height 10 and BC1 format (with 4x4 pixel block size), the storage width or height will be 12. | |
| xiiUInt32 | m_uiDepth = 0 |
| The mip level depth. Note that logical and storage depths are always equivalent. | |
| xiiUInt64 | m_uiRowSize = 0 |
| The row size in bytes. For compressed formats, row size defines the size of one row of compressed blocks. | |
| xiiUInt64 | m_uiDepthSliceSize = 0 |
| The depth slice size in bytes. | |
| xiiUInt64 | m_uiMipSize = 0 |
| The total mip level data size in bytes. | |
This describes the mip level properties.