Add support function for stb compressor.
This commit is contained in:
parent
b839b873e1
commit
2ca6e4a1bd
@ -93,6 +93,15 @@ void ColorBlock::swizzleDXT5n()
|
||||
}
|
||||
}
|
||||
|
||||
void ColorBlock::swizzleSTB()
|
||||
{
|
||||
for(int i = 0; i < 16; i++)
|
||||
{
|
||||
Color32 c = m_color[i];
|
||||
m_color[i] = Color32(c.b, c.g, c.r, c.a);
|
||||
}
|
||||
}
|
||||
|
||||
void ColorBlock::splatX()
|
||||
{
|
||||
for(int i = 0; i < 16; i++)
|
||||
|
@ -20,6 +20,7 @@ namespace nv
|
||||
void init(const Image * img, uint x, uint y);
|
||||
|
||||
void swizzleDXT5n();
|
||||
void swizzleSTB();
|
||||
void splatX();
|
||||
void splatY();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user