From 947e14d3be0f7c5e4b6f77df204ec675b8e9e719 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Fri, 27 Dec 2019 22:16:14 -0300 Subject: Reimplement limited bindless textures support --- Ryujinx.Graphics.Gpu/Engine/Methods.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Ryujinx.Graphics.Gpu/Engine/Methods.cs') 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); -- cgit v1.2.3