Capabilities.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. namespace Ryujinx.Graphics.GAL
  2. {
  3. public struct Capabilities
  4. {
  5. public bool SupportsAstcCompression { get; }
  6. public bool SupportsImageLoadFormatted { get; }
  7. public bool SupportsMismatchingViewFormat { get; }
  8. public bool SupportsNonConstantTextureOffset { get; }
  9. public bool SupportsTextureShadowLod { get; }
  10. public bool SupportsViewportSwizzle { get; }
  11. public int MaximumComputeSharedMemorySize { get; }
  12. public float MaximumSupportedAnisotropy { get; }
  13. public int StorageBufferOffsetAlignment { get; }
  14. public Capabilities(
  15. bool supportsAstcCompression,
  16. bool supportsImageLoadFormatted,
  17. bool supportsMismatchingViewFormat,
  18. bool supportsNonConstantTextureOffset,
  19. bool supportsTextureShadowLod,
  20. bool supportsViewportSwizzle,
  21. int maximumComputeSharedMemorySize,
  22. float maximumSupportedAnisotropy,
  23. int storageBufferOffsetAlignment)
  24. {
  25. SupportsAstcCompression = supportsAstcCompression;
  26. SupportsImageLoadFormatted = supportsImageLoadFormatted;
  27. SupportsMismatchingViewFormat = supportsMismatchingViewFormat;
  28. SupportsNonConstantTextureOffset = supportsNonConstantTextureOffset;
  29. SupportsTextureShadowLod = supportsTextureShadowLod;
  30. SupportsViewportSwizzle = supportsViewportSwizzle;
  31. MaximumComputeSharedMemorySize = maximumComputeSharedMemorySize;
  32. MaximumSupportedAnisotropy = maximumSupportedAnisotropy;
  33. StorageBufferOffsetAlignment = storageBufferOffsetAlignment;
  34. }
  35. }
  36. }