![]() |
XII Release 0.1.0
|
This describes the texture creation description. More...
#include <Texture.h>
Public Member Functions | |
| XII_DECLARE_POD_TYPE () | |
| constexpr XII_ALWAYS_INLINE bool | IsArray () const |
| constexpr XII_ALWAYS_INLINE bool | Is1D () const |
| constexpr XII_ALWAYS_INLINE bool | Is2D () const |
| constexpr XII_ALWAYS_INLINE bool | Is3D () const |
| constexpr XII_ALWAYS_INLINE bool | IsCube () const |
| constexpr XII_ALWAYS_INLINE xiiUInt32 | GetArraySize () const |
| constexpr XII_ALWAYS_INLINE xiiUInt32 | GetWidth () const |
| constexpr XII_ALWAYS_INLINE xiiUInt32 | GetHeight () const |
| constexpr XII_ALWAYS_INLINE xiiUInt32 | GetDepth () const |
Public Member Functions inherited from xiiHashableStruct< xiiGALTextureCreationDescription > | |
| 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 | |
| xiiEnum< xiiGALResourceDimension > | m_Type = xiiGALResourceDimension::Undefined |
| Texture type. The default is Undefined. | |
| xiiSizeU32 | m_Size = xiiSizeU32(0, 0) |
| Texture width and height in pixels. The default is (0, 0). | |
| xiiUInt32 | m_uiArraySizeOrDepth = 1U |
| For a 1D Array or 2D Array, the number of array slices. For cube maps and cube map arrays, this value must be a multiple of 6. For a 3D texture, the number of depth slices. The default is 1. | |
| xiiEnum< xiiGALResourceFormat > | m_Format = xiiGALResourceFormat::Unknown |
| Texture format. The default is Unknown. | |
| xiiUInt32 | m_uiMipLevels = 1U |
| Number of Mip levels in the texture. Multi-sampled textures can only have 1 Mip level. Specify 0 to create full mipmap chain. The default is 1. | |
| xiiUInt32 | m_uiSampleCount = 1U |
| Number of samples. Only 2D textures or 2D texture arrays can be multi-sampled. The default is 1. | |
| xiiBitflags< xiiGALBindFlags > | m_BindFlags = xiiGALBindFlags::None |
| Bind flags. The default is None. | |
| xiiEnum< xiiGALResourceUsage > | m_Usage = xiiGALResourceUsage::Mutable |
| Texture usage. The default is Default. | |
| xiiBitflags< xiiGALCPUAccessFlag > | m_CPUAccessFlags = xiiGALCPUAccessFlag::None |
| CPU access flags. The default is None. | |
| xiiBitflags< xiiGALMiscTextureFlags > | m_MiscFlags = xiiGALMiscTextureFlags::None |
| Miscellaneous flags. The default is None. | |
| xiiGALOptimizedClearValue | m_ClearValue = {} |
| Optimized clear value. | |
| void * | m_pExistingNativeObject = nullptr |
| Used to encapsulate existing native textures in objects usable by the GAL. | |
This describes the texture creation description.