2019-12-29 17:41:50 +00:00
|
|
|
using Ryujinx.Graphics.GAL;
|
2019-10-13 07:02:07 +01:00
|
|
|
|
|
|
|
namespace Ryujinx.Graphics.Gpu.Image
|
|
|
|
{
|
|
|
|
struct TextureBindingInfo
|
|
|
|
{
|
|
|
|
public Target Target { get; }
|
|
|
|
|
|
|
|
public int Handle { get; }
|
|
|
|
|
2019-12-28 01:16:14 +00:00
|
|
|
public bool IsBindless { get; }
|
|
|
|
|
|
|
|
public int CbufSlot { get; }
|
|
|
|
public int CbufOffset { get; }
|
|
|
|
|
2019-10-13 07:02:07 +01:00
|
|
|
public TextureBindingInfo(Target target, int handle)
|
|
|
|
{
|
|
|
|
Target = target;
|
|
|
|
Handle = handle;
|
2019-12-28 01:16:14 +00:00
|
|
|
|
|
|
|
IsBindless = false;
|
|
|
|
|
|
|
|
CbufSlot = 0;
|
|
|
|
CbufOffset = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public TextureBindingInfo(Target target, int cbufSlot, int cbufOffset)
|
|
|
|
{
|
|
|
|
Target = target;
|
|
|
|
Handle = 0;
|
|
|
|
|
|
|
|
IsBindless = true;
|
|
|
|
|
|
|
|
CbufSlot = cbufSlot;
|
|
|
|
CbufOffset = cbufOffset;
|
2019-10-13 07:02:07 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|