From 03711dd7b5d44e20fb45c728803ea6b9599dec87 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Tue, 21 Apr 2020 20:35:28 -0300 Subject: Implement SULD shader instruction (#1117) * Implement SULD shader instruction * Some nits --- Ryujinx.Graphics.Gpu/Image/TextureManager.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/Image') diff --git a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs index 27cbc6ff..b127690b 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureManager.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureManager.cs @@ -207,6 +207,17 @@ namespace Ryujinx.Graphics.Gpu.Image UpdateRenderTargets(); } + /// + /// Gets a texture descriptor used on the compute pipeline. + /// + /// Current GPU state + /// Shader "fake" handle of the texture + /// The texture descriptor + public TextureDescriptor GetComputeTextureDescriptor(GpuState state, int handle) + { + return _cpBindingsManager.GetTextureDescriptor(state, 0, handle); + } + /// /// Gets a texture descriptor used on the graphics pipeline. /// -- cgit v1.2.3