0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-19 07:59:47 +03:00
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

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
};
}
}