diff options
Diffstat (limited to 'Ryujinx.Graphics.Shader/TextureDescriptor.cs')
| -rw-r--r-- | Ryujinx.Graphics.Shader/TextureDescriptor.cs | 33 |
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) |
