aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Graphics.Shader/TextureDescriptor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.Graphics.Shader/TextureDescriptor.cs')
-rw-r--r--src/Ryujinx.Graphics.Shader/TextureDescriptor.cs13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/Ryujinx.Graphics.Shader/TextureDescriptor.cs b/src/Ryujinx.Graphics.Shader/TextureDescriptor.cs
index 626faa69..58b8e5a5 100644
--- a/src/Ryujinx.Graphics.Shader/TextureDescriptor.cs
+++ b/src/Ryujinx.Graphics.Shader/TextureDescriptor.cs
@@ -12,23 +12,16 @@ namespace Ryujinx.Graphics.Shader
public readonly int CbufSlot;
public readonly int HandleIndex;
- public TextureUsageFlags Flags;
+ public readonly TextureUsageFlags Flags;
- public TextureDescriptor(int binding, SamplerType type, TextureFormat format, int cbufSlot, int handleIndex)
+ public TextureDescriptor(int binding, SamplerType type, TextureFormat format, int cbufSlot, int handleIndex, TextureUsageFlags flags)
{
Binding = binding;
Type = type;
Format = format;
CbufSlot = cbufSlot;
HandleIndex = handleIndex;
- Flags = TextureUsageFlags.None;
- }
-
- public TextureDescriptor SetFlag(TextureUsageFlags flag)
- {
- Flags |= flag;
-
- return this;
+ Flags = flags;
}
}
}