aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/Compute.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2019-12-27 22:16:14 -0300
committerThog <thog@protonmail.com>2020-01-09 02:13:00 +0100
commit947e14d3be0f7c5e4b6f77df204ec675b8e9e719 (patch)
treebde8c9ecfa0bab5c8dfa9706e6ef2418d2b53a36 /Ryujinx.Graphics.Gpu/Engine/Compute.cs
parent647d0962df5b54334af965b88f784409afbf6223 (diff)
Reimplement limited bindless textures support
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Compute.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Compute.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Compute.cs b/Ryujinx.Graphics.Gpu/Engine/Compute.cs
index bbf1eeaa..d0df85a0 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Compute.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Compute.cs
@@ -97,7 +97,14 @@ namespace Ryujinx.Graphics.Gpu.Engine
Target target = GetTarget(descriptor.Type);
- textureBindings[index] = new TextureBindingInfo(target, descriptor.HandleIndex);
+ if (descriptor.IsBindless)
+ {
+ textureBindings[index] = new TextureBindingInfo(target, descriptor.CbufOffset, descriptor.CbufSlot);
+ }
+ else
+ {
+ textureBindings[index] = new TextureBindingInfo(target, descriptor.HandleIndex);
+ }
}
_textureManager.SetComputeTextures(textureBindings);