![]() |
XII Release 0.1.0
|
This describes the invariant texture format attributes. These attributes are intrinsic to the texture format itself and do not depend on the format support. More...
#include <Descriptors.h>
Public Member Functions | |
XII_DECLARE_POD_TYPE () | |
XII_ALWAYS_INLINE xiiUInt32 | GetElementSize () const |
For non-compressed formats, returns the texel size. For block-compressed formats, returns the block size. | |
![]() | |
xiiHashableStruct (const xiiHashableStruct< xiiGALResourceFormatDescription > &other) | |
void | operator= (const xiiHashableStruct< xiiGALResourceFormatDescription > &other) |
XII_ALWAYS_INLINE constexpr bool | operator== (const xiiHashableStruct< xiiGALResourceFormatDescription > &rhs) const=default |
xiiUInt32 | CalculateHash () const |
Calculates the 32 bit hash of the struct and returns it. | |
Public Attributes | |
xiiEnum< xiiGALResourceFormat > | m_Format = xiiGALResourceFormat::Unknown |
Texture format. | |
xiiUInt8 | m_uiComponentSize = 0U |
The size of one component in bytes. | |
xiiUInt8 | m_uiComponentCount = 0U |
The number of components. | |
xiiEnum< xiiGALResourceFormatComponentType > | m_ComponentType = xiiGALResourceFormatComponentType::Undefined |
The component type. | |
bool | m_bIsTypeless = false |
Indicates whether the format is a typeless format. | |
xiiUInt8 | m_uiBlockWidth = 0U |
For block-compressed formats, the compression block width. | |
xiiUInt8 | m_uiBlockHeight = 0U |
For block-compressed formats, the compression block height. | |
This describes the invariant texture format attributes. These attributes are intrinsic to the texture format itself and do not depend on the format support.