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/Image/TextureBindingInfo.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs') diff --git a/Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs b/Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs index 19090ab3..042635ee 100644 --- a/Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs +++ b/Ryujinx.Graphics.Gpu/Image/TextureBindingInfo.cs @@ -8,10 +8,31 @@ namespace Ryujinx.Graphics.Gpu.Image public int Handle { get; } + public bool IsBindless { get; } + + public int CbufSlot { get; } + public int CbufOffset { get; } + public TextureBindingInfo(Target target, int handle) { Target = target; Handle = handle; + + IsBindless = false; + + CbufSlot = 0; + CbufOffset = 0; + } + + public TextureBindingInfo(Target target, int cbufSlot, int cbufOffset) + { + Target = target; + Handle = 0; + + IsBindless = true; + + CbufSlot = cbufSlot; + CbufOffset = cbufOffset; } } } \ No newline at end of file -- cgit v1.2.3