|
Haio 0.2.X
Homebrew Asset IO/CDN
|
Classes | |
| struct | Profile |
Functions | |
| constexpr uint64_t | pvrRaw (char a, char b, char c, char d, uint8_t ba, uint8_t bb, uint8_t bc, uint8_t bd) |
| constexpr size_t | etc1Size (Size size) |
| Result< size_t > | payloadSize (Color color, Size size) |
| Result< Profile > | profileFor (Color color, Size size) |
| uint32_t | typeSize (const Profile &profile) |
| Result< Color > | colorFromGL (uint32_t glType, uint32_t glFormat, uint32_t glInternal) |
| Result< Color > | colorFromVK (uint32_t format) |
| Result< Color > | colorFromPVR (uint64_t format) |
Variables | |
| constexpr uint32_t | GL_UNSIGNED_BYTE = 0x1401 |
| constexpr uint32_t | GL_UNSIGNED_SHORT_5_6_5 = 0x8363 |
| constexpr uint32_t | GL_RGB = 0x1907 |
| constexpr uint32_t | GL_RGBA = 0x1908 |
| constexpr uint32_t | GL_RGBA8 = 0x8058 |
| constexpr uint32_t | GL_RGB565 = 0x8d62 |
| constexpr uint32_t | GL_ETC1_RGB8_OES = 0x8d64 |
| constexpr uint32_t | VK_FORMAT_R5G6B5_UNORM_PACK16 = 4 |
| constexpr uint32_t | VK_FORMAT_R8G8B8A8_UNORM = 37 |
| constexpr uint32_t | VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147 |
| struct Haio::Util::GPU::Profile |
Definition at line 105 of file haio_util.hpp.
| Class Members | ||
|---|---|---|
| uint32_t | glBase | |
| uint32_t | glFormat | |
| uint32_t | glInternal | |
| uint32_t | glType | |
| uint64_t | pvrFormat | |
| size_t | size | |
| uint32_t | vkFormat | |
|
constexpr |
etc1 rounds up to whole 4x4 blocks, so the stored size is not width times height
Definition at line 122 of file haio_util.hpp.

|
constexpr |
| uint32_t Haio::Util::GPU::typeSize | ( | const Profile & | profile | ) |
|
inlineconstexpr |
Definition at line 100 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 96 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 99 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 97 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 98 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 94 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 95 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 103 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 101 of file haio_util.hpp.
|
inlineconstexpr |
Definition at line 102 of file haio_util.hpp.