Daily update on 20250618-051714 by Nitload Youmu. Additional Message : Brief support to collection operation in EXPRESS. A collection type added in core lib and compilestack.

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-06-18 05:17:14 +08:00
parent 74c01effe4
commit c624a8ca38
300 changed files with 12227 additions and 4303 deletions
+6 -13
View File
@@ -60,19 +60,13 @@ namespace StgSharp.Graphics.OpenGL
internal GlArrayFormatException( string message ) : base( message ) { }
internal GlArrayFormatException(
SerializationInfo info,
StreamingContext context )
internal GlArrayFormatException( SerializationInfo info, StreamingContext context )
: base( info, context ) { }
internal GlArrayFormatException(
string message,
Exception innerException )
internal GlArrayFormatException( string message, Exception innerException )
: base( message, innerException ) { }
public GlArrayFormatException(
PixelChannelLayout layout,
string arrayname )
public GlArrayFormatException( PixelChannelLayout layout, string arrayname )
: base( $"{arrayname} cannot be used as layout of {layout}" ) { }
}
@@ -80,13 +74,12 @@ namespace StgSharp.Graphics.OpenGL
public static partial class GlHelper
{
public static bool CheckArrayFormat(
this Array array,
PixelChannelLayout layout )
public static bool CheckArrayFormat( this Array array, PixelChannelLayout layout )
{
return layout switch
{
PixelChannelLayout.Byte or PixelChannelLayout.UByte332 or PixelChannelLayout.UByte233Rev => ( array is byte[] ) || ( array is sbyte[] ),
PixelChannelLayout.Byte or PixelChannelLayout.UByte332 or PixelChannelLayout.UByte233Rev => ( array is byte[] ) ||
( array is sbyte[] ),
PixelChannelLayout.Short => array is short[],
PixelChannelLayout.UShort => array is ushort[],
PixelChannelLayout.Int => array is int[],