VulkanOptions.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. namespace Ryujinx.Ava.Ui.Vulkan
  5. {
  6. public class VulkanOptions
  7. {
  8. /// <summary>
  9. /// Sets the application name of the Vulkan instance
  10. /// </summary>
  11. public string ApplicationName { get; set; }
  12. /// <summary>
  13. /// Specifies the Vulkan API version to use
  14. /// </summary>
  15. public Version VulkanVersion { get; set; } = new Version(1, 1, 0);
  16. /// <summary>
  17. /// Specifies additional extensions to enable if available on the instance
  18. /// </summary>
  19. public IEnumerable<string> InstanceExtensions { get; set; } = Enumerable.Empty<string>();
  20. /// <summary>
  21. /// Specifies layers to enable if available on the instance
  22. /// </summary>
  23. public IEnumerable<string> EnabledLayers { get; set; } = Enumerable.Empty<string>();
  24. /// <summary>
  25. /// Enables the debug layer
  26. /// </summary>
  27. public bool UseDebug { get; set; }
  28. /// <summary>
  29. /// Selects the first suitable discrete GPU available
  30. /// </summary>
  31. public bool PreferDiscreteGpu { get; set; }
  32. /// <summary>
  33. /// Sets the device to use if available and suitable.
  34. /// </summary>
  35. public string PreferredDevice { get; set; }
  36. /// <summary>
  37. /// Max number of device queues to request
  38. /// </summary>
  39. public uint MaxQueueCount { get; set; }
  40. }
  41. }