TextureBindingInfo.cs 801 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using Ryujinx.Graphics.GAL.Texture;
  2. namespace Ryujinx.Graphics.Gpu.Image
  3. {
  4. struct TextureBindingInfo
  5. {
  6. public Target Target { get; }
  7. public int Handle { get; }
  8. public bool IsBindless { get; }
  9. public int CbufSlot { get; }
  10. public int CbufOffset { get; }
  11. public TextureBindingInfo(Target target, int handle)
  12. {
  13. Target = target;
  14. Handle = handle;
  15. IsBindless = false;
  16. CbufSlot = 0;
  17. CbufOffset = 0;
  18. }
  19. public TextureBindingInfo(Target target, int cbufSlot, int cbufOffset)
  20. {
  21. Target = target;
  22. Handle = 0;
  23. IsBindless = true;
  24. CbufSlot = cbufSlot;
  25. CbufOffset = cbufOffset;
  26. }
  27. }
  28. }