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(); } } }