OperationResult.cs 496 B

12345678910111213141516171819
  1. using Ryujinx.Graphics.Shader.Translation;
  2. using Spv.Generator;
  3. namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
  4. {
  5. readonly struct OperationResult
  6. {
  7. public static OperationResult Invalid => new OperationResult(AggregateType.Invalid, null);
  8. public AggregateType Type { get; }
  9. public Instruction Value { get; }
  10. public OperationResult(AggregateType type, Instruction value)
  11. {
  12. Type = type;
  13. Value = value;
  14. }
  15. }
  16. }