mirror of
https://github.com/AssetRipper/AssetRipper.TextureDecoder.git
synced 2026-11-13 04:26:30 -10:00
18 lines
448 B
C#
18 lines
448 B
C#
using AssetRipper.TextureDecoder.Rgb;
|
|
|
|
namespace AssetRipper.TextureDecoder.TestGenerator
|
|
{
|
|
internal struct GenerationData
|
|
{
|
|
public Type ColorType;
|
|
public Type ChannelType;
|
|
public int ColorSize;
|
|
|
|
public GenerationData(Type colorType, int colorSize)
|
|
{
|
|
ColorType = colorType;
|
|
ChannelType = ColorType.GetInterfaces().Single(t => t.Name == $"{nameof(IColor<byte>)}`1").GenericTypeArguments[0];
|
|
ColorSize = colorSize;
|
|
}
|
|
}
|
|
} |