StructureType.cs
1 using Ryujinx.Graphics.Shader.Translation; 2 3 namespace Ryujinx.Graphics.Shader.StructuredIr 4 { 5 readonly struct StructureField 6 { 7 public AggregateType Type { get; } 8 public string Name { get; } 9 public int ArrayLength { get; } 10 11 public StructureField(AggregateType type, string name, int arrayLength = 1) 12 { 13 Type = type; 14 Name = name; 15 ArrayLength = arrayLength; 16 } 17 } 18 19 class StructureType 20 { 21 public StructureField[] Fields { get; } 22 23 public StructureType(StructureField[] fields) 24 { 25 Fields = fields; 26 } 27 } 28 }