This commit is contained in:
bird_egop
2024-11-14 12:04:05 +03:00
commit 08aec8f1f7
9 changed files with 644 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
namespace TextureDecoder;
public static class Extensions
{
public static int AsStride(this int format)
{
return format switch
{
8888 => 32,
4444 => 16,
565 => 16,
888 => 32,
0 => 32
};
}
}