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
---
src/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs | 30 ++++++++++++++++++++++
1 file changed, 30 insertions(+)
create mode 100644 src/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs
(limited to 'src/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs')
diff --git a/src/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs b/src/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs
new file mode 100644
index 00000000..0017f4cc
--- /dev/null
+++ b/src/Ryujinx.Graphics.Gpu/Image/TexturePoolCache.cs
@@ -0,0 +1,30 @@
+namespace Ryujinx.Graphics.Gpu.Image
+{
+ ///
+ /// Texture pool cache.
+ /// This can keep multiple texture pools, and return the current one as needed.
+ /// It is useful for applications that uses multiple texture pools.
+ ///
+ class TexturePoolCache : PoolCache
+ {
+ ///
+ /// Constructs a new instance of the texture pool.
+ ///
+ /// GPU context that the texture pool belongs to
+ public TexturePoolCache(GpuContext context) : base(context)
+ {
+ }
+
+ ///
+ /// Creates a new instance of the texture pool.
+ ///
+ /// GPU context that the texture pool belongs to
+ /// GPU channel that the texture pool belongs to
+ /// Address of the texture pool in guest memory
+ /// Maximum texture ID of the texture pool (equal to maximum textures minus one)
+ protected override TexturePool CreatePool(GpuContext context, GpuChannel channel, ulong address, int maximumId)
+ {
+ return new TexturePool(context, channel, address, maximumId);
+ }
+ }
+}
\ No newline at end of file
--
cgit v1.2.3