XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEEDToolBox

【WinUI】XFE精英危险工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
using XFEEDToolBox.Core.Rendering;
using XFEExtension.NetCore.XUnit.Attributes;

namespace XFEEDToolBox.Test;

[TestFixture]
public sealed class GalaxyOriginalTradeAssetsTests
{
    [Test] public void CurrentTradeUsesTheAuthoredSrgbAtlasesAndRetainsThePaddedTrail()
    {
        var assets = GalaxyOriginalTradeAssets.Reference;
        Check.Equal(512, assets.Route.Width); Check.Equal(512, assets.Route.Height);
        Check.Equal(131072, assets.Route.Payload.Length);
        Check.Equal(131072, assets.Hotspot.Payload.Length);
        Check.Equal(64, assets.Trail.Width); Check.Equal(4, assets.Trail.Height);
        Check.Equal(256, assets.Trail.RowPitch); Check.Equal(512, assets.Trail.Payload.Length);
        // The route's two-sample+trail shader and the hotspot's two-sample shader have different authored gains/widths.
        Check.Equal(5f, assets.RouteMaterial.StandardMapScales.X);
        Check.Equal(2f, assets.HotspotMaterial.StandardMapScales.X);
        Check.Equal(1f, assets.RouteMaterial.WidthScale);
        Check.Equal(.65f, assets.HotspotMaterial.WidthScale);
        Check.Equal(4f, assets.RouteMaterial.TileLength!.Value);
        Check.That(assets.HotspotMaterial.TileLength is null);
    }
}