feat: GSS2.Test - UI+DI, Vulkan render test

This commit is contained in:
2026-01-22 08:04:04 +03:00
parent 2ce8d3e966
commit 5af1c508f5
23 changed files with 1093 additions and 131 deletions
+32
View File
@@ -0,0 +1,32 @@
using LibCameraSharp;
namespace GSS2.Test;
public class CameraViewModel : ViewModelBase
{
public class UpdateEventArgs : EventArgs
{
public FrameBuffer? FrameBuffer { get; }
public StreamConfiguration? StreamConfiguration { get; }
public UpdateEventArgs(FrameBuffer? frameBuffer = null, StreamConfiguration? streamConfiguration = null)
{
FrameBuffer = frameBuffer;
StreamConfiguration = streamConfiguration;
}
}
private readonly ILogger<CameraViewModel> _logger;
public event EventHandler<UpdateEventArgs>? Update;
public CameraViewModel(ILogger<CameraViewModel> logger)
{
_logger = logger;
_logger.LogInformation("Initialized");
}
public void CallUpdate(FrameBuffer? frameBuffer = null, StreamConfiguration? streamConfiguration = null)
{
Update?.Invoke(this, new UpdateEventArgs(frameBuffer, streamConfiguration));
}
}