mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
18 lines
452 B
C#
18 lines
452 B
C#
using Artemis.Core.Providers;
|
|
using Artemis.Core.SkiaSharp;
|
|
using Artemis.UI.Windows.SkiaSharp;
|
|
|
|
namespace Artemis.UI.Windows.Providers;
|
|
|
|
public class GraphicsContextProvider : IGraphicsContextProvider
|
|
{
|
|
private VulkanContext? _vulkanContext;
|
|
|
|
public string GraphicsContextName => "Vulkan";
|
|
|
|
public IManagedGraphicsContext? GetGraphicsContext()
|
|
{
|
|
_vulkanContext ??= new VulkanContext();
|
|
return _vulkanContext;
|
|
}
|
|
} |