mirror of
https://github.com/DarthAffe/HPPH.git
synced 2026-11-10 19:06:34 +00:00
Implemented a first draft of a ColorFormat-conversion
This commit is contained in:
1 parent
9f37a41f55
commit
ccd4a8d5c8
12 files changed
+309
-3
No files matched your search
@@ -18,7 +18,7 @@ internal class Colors : IGeneratorFeature
|
||||
|
||||
public IEnumerable<(string name, string source)> GenerateFor(ImmutableArray<ColorFormatData> colorFormats)
|
||||
{
|
||||
yield return ("IColorFormat.Instances.cs", GenerateColorFormats(colorFormats));
|
||||
yield return ("IColorFormat.Instances", GenerateColorFormats(colorFormats));
|
||||
}
|
||||
|
||||
private static string GenerateColorStructCode(ColorFormatData colorFormat)
|
||||
@@ -165,6 +165,8 @@ internal class Colors : IGeneratorFeature
|
||||
|
||||
public string Name => "{{colorFormat.Format}}";
|
||||
|
||||
ReadOnlySpan<byte> IColorFormat.ByteMapping => [{{colorFormat.ByteMapping}}];
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
Reference in new issue
Block a user