mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-28 03:23:05 +00:00
wip
This commit is contained in:
parent
5813b2e354
commit
18231cc9da
4 changed files with 37 additions and 0 deletions
37
src/Ryujinx.Tests/Graphics/AstcDecoderTests.cs
Normal file
37
src/Ryujinx.Tests/Graphics/AstcDecoderTests.cs
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
using NUnit.Framework;
|
||||||
|
using Ryujinx.Graphics.Gpu;
|
||||||
|
using Ryujinx.Graphics.Texture.Astc;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Ryujinx.Tests.Graphics
|
||||||
|
{
|
||||||
|
public class AstcDecoderTests
|
||||||
|
{
|
||||||
|
private const int ASTCBlockSize;
|
||||||
|
|
||||||
|
[SetUp]
|
||||||
|
public void SetupFixture()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void _Test()
|
||||||
|
{
|
||||||
|
var inputData = GetTestData();
|
||||||
|
var outputBuffer = new Memory<byte>();
|
||||||
|
GraphicsConfig.EnableTextureRecompression = false;
|
||||||
|
|
||||||
|
|
||||||
|
AstcDecoder.TryDecodeToRgba8P()
|
||||||
|
|
||||||
|
AstcDecoder target = new AstcDecoder();
|
||||||
|
}
|
||||||
|
|
||||||
|
private ReadOnlyMemory<byte> GetTestData();
|
||||||
|
}
|
||||||
|
}
|
BIN
src/Ryujinx.Tests/Graphics/TestData/kodim01.l.4x4.astc
Normal file
BIN
src/Ryujinx.Tests/Graphics/TestData/kodim01.l.4x4.astc
Normal file
Binary file not shown.
BIN
src/Ryujinx.Tests/Graphics/TestData/kodim01.l.4x4.astc.png
Normal file
BIN
src/Ryujinx.Tests/Graphics/TestData/kodim01.l.4x4.astc.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 997 KiB |
BIN
src/Ryujinx.Tests/Graphics/TestData/kodim01.png
Normal file
BIN
src/Ryujinx.Tests/Graphics/TestData/kodim01.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 719 KiB |
Loading…
Reference in a new issue