aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Shader/TextureDescriptor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Graphics.Shader/TextureDescriptor.cs')
-rw-r--r--Ryujinx.Graphics.Shader/TextureDescriptor.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Ryujinx.Graphics.Shader/TextureDescriptor.cs b/Ryujinx.Graphics.Shader/TextureDescriptor.cs
index 7c2bd714..7cf868ef 100644
--- a/Ryujinx.Graphics.Shader/TextureDescriptor.cs
+++ b/Ryujinx.Graphics.Shader/TextureDescriptor.cs
@@ -46,5 +46,12 @@ namespace Ryujinx.Graphics.Shader
Flags = TextureUsageFlags.None;
}
+
+ public TextureDescriptor SetFlag(TextureUsageFlags flag)
+ {
+ Flags |= flag;
+
+ return this;
+ }
}
} \ No newline at end of file