aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/TextureDescriptor.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2020-11-09 19:35:04 -0300
committerGitHub <noreply@github.com>2020-11-09 19:35:04 -0300
commit934a78005e75653529c320cf90e78fe6536447c2 (patch)
treea0601ef1abfbace3c35c10fb048d2e33447054c2 /Ryujinx.Graphics.Shader/TextureDescriptor.cs
parenteda6b78894eef3d9dc1e8ea6984e2f5bd319d68e (diff)
Simplify logic for bindless texture handling (#1667)
* Simplify logic for bindless texture handling * Nits
Diffstat (limited to 'Ryujinx.Graphics.Shader/TextureDescriptor.cs')
-rw-r--r--Ryujinx.Graphics.Shader/TextureDescriptor.cs33
1 files changed, 4 insertions, 29 deletions
diff --git a/Ryujinx.Graphics.Shader/TextureDescriptor.cs b/Ryujinx.Graphics.Shader/TextureDescriptor.cs
index b39d6c3d..95f5e01d 100644
--- a/Ryujinx.Graphics.Shader/TextureDescriptor.cs
+++ b/Ryujinx.Graphics.Shader/TextureDescriptor.cs
@@ -5,46 +5,21 @@ namespace Ryujinx.Graphics.Shader
public int Binding { get; }
public SamplerType Type { get; }
-
public TextureFormat Format { get; }
+ public int CbufSlot { get; }
public int HandleIndex { get; }
- public bool IsBindless { get; }
-
- public int CbufSlot { get; }
- public int CbufOffset { get; }
-
public TextureUsageFlags Flags { get; set; }
- public TextureDescriptor(int binding, SamplerType type, TextureFormat format, int handleIndex)
+ public TextureDescriptor(int binding, SamplerType type, TextureFormat format, int cbufSlot, int handleIndex)
{
Binding = binding;
Type = type;
Format = format;
+ CbufSlot = cbufSlot;
HandleIndex = handleIndex;
-
- IsBindless = false;
-
- CbufSlot = 0;
- CbufOffset = 0;
-
- Flags = TextureUsageFlags.None;
- }
-
- public TextureDescriptor(int binding, SamplerType type, int cbufSlot, int cbufOffset)
- {
- Binding = binding;
- Type = type;
- Format = TextureFormat.Unknown;
- HandleIndex = 0;
-
- IsBindless = true;
-
- CbufSlot = cbufSlot;
- CbufOffset = cbufOffset;
-
- Flags = TextureUsageFlags.None;
+ Flags = TextureUsageFlags.None;
}
public TextureDescriptor SetFlag(TextureUsageFlags flag)