daily update on 20241002 by nitload youmu, intrinsic function rebuild, syntax style arrange

This commit is contained in:
Nitload
2024-10-03 04:03:06 +08:00
parent 0979123ac0
commit 6e2f93b053
265 changed files with 26732 additions and 19058 deletions
+28 -10
View File
@@ -38,26 +38,44 @@ namespace StgSharp.Graphics
public interface IPixel
{
public float Red { get; set; }
public float Green { get; set; }
public float Blue { get; set; }
public float Alpha { get; set; }
public float Red
{
get;
set;
}
internal int Size { get; }
public float Green
{
get;
set;
}
public float Blue
{
get;
set;
}
public float Alpha
{
get;
set;
}
internal int Size
{
get;
}
}
[StructLayout(LayoutKind.Explicit, Size = 32)]
[StructLayout( LayoutKind.Explicit, Size = 32 )]
public unsafe struct Pixel32
{
[FieldOffset(0)] private unsafe fixed byte data[4];
[FieldOffset( 0 )] private unsafe fixed byte data[ 4 ];
internal int Size => 4;
}
}