SoftwareCompositorをIBufferCompositorの実装へ変更

このコミットが含まれているのは:
routersys committed 2026-07-02 12:52:29 +09:00
1 親 77fdf60ec9
コミット d7812f39dc
2ファイル変更
+13 -1

検索条件に一致するファイルはありません

+10 -1
ファイルの表示
@@ -3,8 +3,17 @@ using System.Numerics;
namespace LuaScript
{
internal static class SoftwareCompositor
internal sealed class SoftwareCompositor : IBufferCompositor
{
public void Compose(byte[] dst, int dstW, int dstH, byte[] src, int srcW, int srcH, in DrawCommand command)
{
bool linear = command.Antialias != 0d;
if (command.Poly is { } poly)
DrawPolyInto(dst, dstW, dstH, src, srcW, srcH, poly, command.Alpha, linear);
else
DrawInto(dst, dstW, dstH, src, srcW, srcH, command.Ox, command.Oy, command.Zoom, command.Aspect, command.Alpha, linear);
}
public static void DrawInto(
byte[] dst, int dstW, int dstH,
byte[] src, int srcW, int srcH,