aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Graphics.Gpu/Engine/Methods.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/Methods.cs
parent647d0962df5b54334af965b88f784409afbf6223 (diff)
Reimplement limited bindless textures support
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs')
-rw-r--r--Ryujinx.Graphics.Gpu/Engine/Methods.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Ryujinx.Graphics.Gpu/Engine/Methods.cs b/Ryujinx.Graphics.Gpu/Engine/Methods.cs
index 76b407cc..0c103e0d 100644
--- a/Ryujinx.Graphics.Gpu/Engine/Methods.cs
+++ b/Ryujinx.Graphics.Gpu/Engine/Methods.cs
@@ -694,7 +694,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.CbufSlot, descriptor.CbufOffset);
+ }
+ else
+ {
+ textureBindings[index] = new TextureBindingInfo(target, descriptor.HandleIndex);
+ }
}
_textureManager.SetGraphicsTextures(stage, textureBindings);