0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-05-18 11:21:18 +03:00
ParkanPlayground/TexmLib/Extensions.cs
2024-11-18 23:48:42 +03:00

16 lines
281 B
C#

namespace TexmLib;
public static class Extensions
{
public static int AsStride(this int format)
{
return format switch
{
8888 => 32,
4444 => 16,
565 => 16,
888 => 32,
0 => 32
};
}
}