From 1876b346fea647e8284a66bb6d62c38801035cff Mon Sep 17 00:00:00 2001 From: gdk Date: Sun, 13 Oct 2019 03:02:07 -0300 Subject: Initial work --- .../StructuredIr/StructuredProgramInfo.cs | 40 ++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramInfo.cs (limited to 'Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramInfo.cs') diff --git a/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramInfo.cs b/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramInfo.cs new file mode 100644 index 00000000..27fd1487 --- /dev/null +++ b/Ryujinx.Graphics.Shader/StructuredIr/StructuredProgramInfo.cs @@ -0,0 +1,40 @@ +using System.Collections.Generic; + +namespace Ryujinx.Graphics.Shader.StructuredIr +{ + class StructuredProgramInfo + { + public AstBlock MainBlock { get; } + + public HashSet Locals { get; } + + public HashSet CBuffers { get; } + public HashSet SBuffers { get; } + + public HashSet IAttributes { get; } + public HashSet OAttributes { get; } + + public InterpolationQualifier[] InterpolationQualifiers { get; } + + public bool UsesInstanceId { get; set; } + + public HashSet Samplers { get; } + + public StructuredProgramInfo(AstBlock mainBlock) + { + MainBlock = mainBlock; + + Locals = new HashSet(); + + CBuffers = new HashSet(); + SBuffers = new HashSet(); + + IAttributes = new HashSet(); + OAttributes = new HashSet(); + + InterpolationQualifiers = new InterpolationQualifier[32]; + + Samplers = new HashSet(); + } + } +} \ No newline at end of file -- cgit v1.2.3