mirror of
https://github.com/sampletext32/ParkanPlayground.git
synced 2025-06-19 07:59:47 +03:00
texm viewer
This commit is contained in:
16
TexmLib/Extensions.cs
Normal file
16
TexmLib/Extensions.cs
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user