Reimplement limited bindless textures support

This commit is contained in:
gdkchan 2019-12-27 22:16:14 -03:00 committed by Thog
parent 647d0962df
commit 947e14d3be
6 changed files with 65 additions and 5 deletions

View file

@ -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;
}
}
}