From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001
From: TSR Berry <20988865+TSRBerry@users.noreply.github.com>
Date: Sat, 8 Apr 2023 01:22:00 +0200
Subject: Move solution and projects to src
---
.../Shader/DiskCache/DiskCacheOutputStreams.cs | 57 ++++++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheOutputStreams.cs
(limited to 'src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheOutputStreams.cs')
diff --git a/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheOutputStreams.cs b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheOutputStreams.cs
new file mode 100644
index 00000000..1e0df264
--- /dev/null
+++ b/src/Ryujinx.Graphics.Gpu/Shader/DiskCache/DiskCacheOutputStreams.cs
@@ -0,0 +1,57 @@
+using System;
+using System.IO;
+
+namespace Ryujinx.Graphics.Gpu.Shader.DiskCache
+{
+ ///
+ /// Output streams for the disk shader cache.
+ ///
+ class DiskCacheOutputStreams : IDisposable
+ {
+ ///
+ /// Shared table of contents (TOC) file stream.
+ ///
+ public readonly FileStream TocFileStream;
+
+ ///
+ /// Shared data file stream.
+ ///
+ public readonly FileStream DataFileStream;
+
+ ///
+ /// Host table of contents (TOC) file stream.
+ ///
+ public readonly FileStream HostTocFileStream;
+
+ ///
+ /// Host data file stream.
+ ///
+ public readonly FileStream HostDataFileStream;
+
+ ///
+ /// Creates a new instance of a disk cache output stream container.
+ ///
+ /// Stream for the shared table of contents file
+ /// Stream for the shared data file
+ /// Stream for the host table of contents file
+ /// Stream for the host data file
+ public DiskCacheOutputStreams(FileStream tocFileStream, FileStream dataFileStream, FileStream hostTocFileStream, FileStream hostDataFileStream)
+ {
+ TocFileStream = tocFileStream;
+ DataFileStream = dataFileStream;
+ HostTocFileStream = hostTocFileStream;
+ HostDataFileStream = hostDataFileStream;
+ }
+
+ ///
+ /// Disposes the output file streams.
+ ///
+ public void Dispose()
+ {
+ TocFileStream.Dispose();
+ DataFileStream.Dispose();
+ HostTocFileStream.Dispose();
+ HostDataFileStream.Dispose();
+ }
+ }
+}
--
cgit v1.2.3