diff options
| author | gdkchan <gab.dark.100@gmail.com> | 2019-12-27 22:16:14 -0300 |
|---|---|---|
| committer | Thog <thog@protonmail.com> | 2020-01-09 02:13:00 +0100 |
| commit | 947e14d3be0f7c5e4b6f77df204ec675b8e9e719 (patch) | |
| tree | bde8c9ecfa0bab5c8dfa9706e6ef2418d2b53a36 /Ryujinx.Graphics.Shader | |
| parent | 647d0962df5b54334af965b88f784409afbf6223 (diff) | |
Reimplement limited bindless textures support
Diffstat (limited to 'Ryujinx.Graphics.Shader')
| -rw-r--r-- | Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs | 2 | ||||
| -rw-r--r-- | Ryujinx.Graphics.Shader/TextureDescriptor.cs | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs index bad5c00c..200569c4 100644 --- a/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs +++ b/Ryujinx.Graphics.Shader/CodeGen/Glsl/Declarations.cs @@ -272,6 +272,8 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Glsl AstOperand operand = texOp.GetSource(0) as AstOperand; desc = new TextureDescriptor(samplerName, texOp.Type, operand.CbufSlot, operand.CbufOffset); + + context.TextureDescriptors.Add(desc); } else if ((texOp.Type & SamplerType.Indexed) != 0) { diff --git a/Ryujinx.Graphics.Shader/TextureDescriptor.cs b/Ryujinx.Graphics.Shader/TextureDescriptor.cs index bfcdde59..fae9b58c 100644 --- a/Ryujinx.Graphics.Shader/TextureDescriptor.cs +++ b/Ryujinx.Graphics.Shader/TextureDescriptor.cs @@ -13,11 +13,11 @@ namespace Ryujinx.Graphics.Shader public int CbufSlot { get; } public int CbufOffset { get; } - public TextureDescriptor(string name, SamplerType type, int hIndex) + public TextureDescriptor(string name, SamplerType type, int handleIndex) { Name = name; Type = type; - HandleIndex = hIndex; + HandleIndex = handleIndex; IsBindless = false; |
