GalTextureSampler.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. namespace Ryujinx.Graphics.Gal
  2. {
  3. public struct GalTextureSampler
  4. {
  5. public GalTextureWrap AddressU { get; private set; }
  6. public GalTextureWrap AddressV { get; private set; }
  7. public GalTextureWrap AddressP { get; private set; }
  8. public GalTextureFilter MinFilter { get; private set; }
  9. public GalTextureFilter MagFilter { get; private set; }
  10. public GalTextureMipFilter MipFilter { get; private set; }
  11. public GalColorF BorderColor { get; private set; }
  12. public bool DepthCompare { get; private set; }
  13. public DepthCompareFunc DepthCompareFunc { get; private set; }
  14. public GalTextureSampler(
  15. GalTextureWrap AddressU,
  16. GalTextureWrap AddressV,
  17. GalTextureWrap AddressP,
  18. GalTextureFilter MinFilter,
  19. GalTextureFilter MagFilter,
  20. GalTextureMipFilter MipFilter,
  21. GalColorF BorderColor,
  22. bool DepthCompare,
  23. DepthCompareFunc DepthCompareFunc)
  24. {
  25. this.AddressU = AddressU;
  26. this.AddressV = AddressV;
  27. this.AddressP = AddressP;
  28. this.MinFilter = MinFilter;
  29. this.MagFilter = MagFilter;
  30. this.MipFilter = MipFilter;
  31. this.BorderColor = BorderColor;
  32. this.DepthCompare = DepthCompare;
  33. this.DepthCompareFunc = DepthCompareFunc;
  34. }
  35. }
  36. }