mirror of
https://github.com/par274/sharpemu.git
synced 2026-08-20 16:31:27 +08:00
A vplayer fix (#821)
* Astrobot-video-fix * Astrobot-video-fix with updated files * Astrobot-video-fix with tests files
This commit is contained in:
@@ -59,9 +59,14 @@ public sealed record HostVideoOptions
|
||||
|
||||
public static class HostVideoHost
|
||||
{
|
||||
private static HostVideoOptions _currentOptions = HostVideoOptions.Default;
|
||||
|
||||
public static HostVideoOptions CurrentOptions => Volatile.Read(ref _currentOptions);
|
||||
|
||||
public static bool TryConfigureVideo(HostVideoOptions options)
|
||||
{
|
||||
var normalized = options.Normalize();
|
||||
Volatile.Write(ref _currentOptions, normalized);
|
||||
return VulkanVideoPresenter.TryConfigureVideo(normalized) &
|
||||
MetalVideoPresenter.TryConfigureVideo(normalized);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user