mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
more pvr formats
This commit is contained in:
parent
a9b07870d5
commit
f793c2f087
1 changed files with 15 additions and 0 deletions
|
@ -1260,6 +1260,13 @@ namespace bgfx
|
|||
#define PVR3_BC4 12
|
||||
#define PVR3_BC5 13
|
||||
#define PVR3_RGBA16 PVR3_MAKE8CC('r', 'g', 'b', 'a', 16, 16, 16, 16)
|
||||
#define PVR3_RGB102 PVR3_MAKE8CC('r', 'g', 'b', 'a', 10, 10, 10, 2)
|
||||
#define PVR3_BGRA8 PVR3_MAKE8CC('b', 'g', 'r', 'a', 8, 8, 8, 8)
|
||||
#define PVR3_RGBA4 PVR3_MAKE8CC('r', 'g', 'b', 'a', 4, 4, 4, 4)
|
||||
#define PVR3_RGBA51 PVR3_MAKE8CC('r', 'g', 'b', 'a', 5, 5, 5, 1)
|
||||
#define PVR3_RGB565 PVR3_MAKE8CC('r', 'g', 'b', 0, 5, 6, 5, 0)
|
||||
#define PVR3_R16 PVR3_MAKE8CC('r', 0, 0, 0, 16, 0, 0, 0)
|
||||
#define PVR3_R8 PVR3_MAKE8CC('r', 0, 0, 0, 8, 0, 0, 0)
|
||||
|
||||
#define PVR3_CHANNEL_TYPE_ANY UINT32_MAX
|
||||
#define PVR3_CHANNEL_TYPE_FLOAT UINT32_C(12)
|
||||
|
@ -1288,6 +1295,14 @@ namespace bgfx
|
|||
{ PVR3_BC5, PVR3_CHANNEL_TYPE_ANY, TextureFormat::BC5 },
|
||||
{ PVR3_RGBA16, PVR3_CHANNEL_TYPE_FLOAT, TextureFormat::RGBA16F },
|
||||
{ PVR3_RGBA16, PVR3_CHANNEL_TYPE_ANY, TextureFormat::RGBA16 },
|
||||
{ PVR3_RGB102, PVR3_CHANNEL_TYPE_ANY, TextureFormat::RGB10A2 },
|
||||
{ PVR3_BGRA8, PVR3_CHANNEL_TYPE_ANY, TextureFormat::BGRA8 },
|
||||
{ PVR3_RGBA4, PVR3_CHANNEL_TYPE_ANY, TextureFormat::RGBA4 },
|
||||
{ PVR3_RGBA51, PVR3_CHANNEL_TYPE_ANY, TextureFormat::RGB5A1 },
|
||||
{ PVR3_RGB565, PVR3_CHANNEL_TYPE_ANY, TextureFormat::R5G6B5 },
|
||||
{ PVR3_R16, PVR3_CHANNEL_TYPE_FLOAT, TextureFormat::R16F },
|
||||
{ PVR3_R16, PVR3_CHANNEL_TYPE_ANY, TextureFormat::R16 },
|
||||
{ PVR3_R8, PVR3_CHANNEL_TYPE_ANY, TextureFormat::R8 },
|
||||
};
|
||||
|
||||
bool imageParsePvr3(ImageContainer& _imageContainer, bx::ReaderSeekerI* _reader)
|
||||
|
|
Loading…
Reference in a new issue