0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-05-18 19:31:17 +03:00
ParkanPlayground/TexmLib/Extensions.cs

16 lines
281 B
C#
Raw Normal View History

2024-11-18 23:48:42 +03:00
namespace TexmLib;
2024-11-14 12:04:05 +03:00
public static class Extensions
{
public static int AsStride(this int format)
{
return format switch
{
8888 => 32,
4444 => 16,
565 => 16,
888 => 32,
0 => 32
};
}
}