mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Fixed bpp.
This commit is contained in:
parent
6146f08183
commit
f0b80b6d09
4 changed files with 12 additions and 12 deletions
|
@ -907,10 +907,10 @@ namespace bgfx
|
|||
static const uint32_t s_bitsPerPixel[TextureFormat::Count] =
|
||||
{
|
||||
4, // Dxt1
|
||||
4, // Dxt3
|
||||
4, // Dxt5
|
||||
8, // Dxt3
|
||||
8, // Dxt5
|
||||
4, // BC4
|
||||
4, // BC5
|
||||
8, // BC5
|
||||
0, // Unknown
|
||||
8, // L8
|
||||
32, // BGRX8
|
||||
|
|
|
@ -150,10 +150,10 @@ namespace bgfx
|
|||
static const TextureFormatInfo s_textureFormat[TextureFormat::Count] =
|
||||
{
|
||||
{ DXGI_FORMAT_BC1_UNORM, 4 },
|
||||
{ DXGI_FORMAT_BC2_UNORM, 4 },
|
||||
{ DXGI_FORMAT_BC3_UNORM, 4 },
|
||||
{ DXGI_FORMAT_BC2_UNORM, 8 },
|
||||
{ DXGI_FORMAT_BC3_UNORM, 8 },
|
||||
{ DXGI_FORMAT_BC4_UNORM, 4 },
|
||||
{ DXGI_FORMAT_BC5_UNORM, 4 },
|
||||
{ DXGI_FORMAT_BC5_UNORM, 8 },
|
||||
{ DXGI_FORMAT_UNKNOWN, 0 },
|
||||
{ DXGI_FORMAT_R8_UNORM, 8 },
|
||||
{ DXGI_FORMAT_B8G8R8A8_UNORM, 32 },
|
||||
|
|
|
@ -165,10 +165,10 @@ namespace bgfx
|
|||
static const TextureFormatInfo s_textureFormat[TextureFormat::Count] =
|
||||
{
|
||||
{ D3DFMT_DXT1, 4 },
|
||||
{ D3DFMT_DXT3, 4 },
|
||||
{ D3DFMT_DXT5, 4 },
|
||||
{ D3DFMT_DXT3, 8 },
|
||||
{ D3DFMT_DXT5, 8 },
|
||||
{ D3DFMT_ATI1, 4 },
|
||||
{ D3DFMT_ATI2, 4 },
|
||||
{ D3DFMT_ATI2, 8 },
|
||||
{ D3DFMT_UNKNOWN, 0 },
|
||||
{ D3DFMT_L8, 8 },
|
||||
{ D3DFMT_X8R8G8B8, 32 },
|
||||
|
|
|
@ -527,10 +527,10 @@ namespace bgfx
|
|||
static TextureFormatInfo s_textureFormat[TextureFormat::Count] =
|
||||
{
|
||||
{ GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, GL_ZERO, 4, false },
|
||||
{ GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, GL_ZERO, 4, false },
|
||||
{ GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_ZERO, 4, false },
|
||||
{ GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, GL_COMPRESSED_RGBA_S3TC_DXT3_EXT, GL_ZERO, 8, false },
|
||||
{ GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_COMPRESSED_RGBA_S3TC_DXT5_EXT, GL_ZERO, 8, false },
|
||||
{ GL_COMPRESSED_LUMINANCE_LATC1_EXT, GL_COMPRESSED_LUMINANCE_LATC1_EXT, GL_ZERO, 4, false },
|
||||
{ GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT, GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT, GL_ZERO, 4, false },
|
||||
{ GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT, GL_COMPRESSED_LUMINANCE_ALPHA_LATC2_EXT, GL_ZERO, 8, false },
|
||||
{ GL_ZERO, GL_ZERO, GL_ZERO, 0, true },
|
||||
{ GL_LUMINANCE, GL_LUMINANCE, GL_UNSIGNED_BYTE, 8, true },
|
||||
{ GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 32, true },
|
||||
|
|
Loading…
Reference in a new issue