diff options
Diffstat (limited to 'Ryujinx.Graphics.Gpu/Engine')
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Compute.cs | 9 | ||||
| -rw-r--r-- | Ryujinx.Graphics.Gpu/Engine/Methods.cs | 9 |
2 files changed, 16 insertions, 2 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); 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); |
