VulkanOptions.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 additional extensions to enable if available on the instance
  14. /// </summary>
  15. public IEnumerable<string> InstanceExtensions { get; set; } = Enumerable.Empty<string>();
  16. /// <summary>
  17. /// Specifies layers to enable if available on the instance
  18. /// </summary>
  19. public IEnumerable<string> EnabledLayers { get; set; } = Enumerable.Empty<string>();
  20. /// <summary>
  21. /// Enables the debug layer
  22. /// </summary>
  23. public bool UseDebug { get; set; }
  24. /// <summary>
  25. /// Selects the first suitable discrete GPU available
  26. /// </summary>
  27. public bool PreferDiscreteGpu { get; set; }
  28. /// <summary>
  29. /// Sets the device to use if available and suitable.
  30. /// </summary>
  31. public string PreferredDevice { get; set; }
  32. /// <summary>
  33. /// Max number of device queues to request
  34. /// </summary>
  35. public uint MaxQueueCount { get; set; }
  36. }
  37. }