GAL changes

This commit is contained in:
Evan Husted 2024-12-23 21:52:39 -06:00
parent d4b9e06522
commit f3dcb80a60
3 changed files with 9 additions and 5 deletions

View File

@ -21,6 +21,8 @@ namespace Ryujinx.Graphics.Metal
private Pipeline _pipeline;
private Window _window;
public uint ProgramCount { get; set; } = 0;
public event EventHandler<ScreenCaptureImageInfo> ScreenCaptured;
public bool PreferThreading => true;
public IPipeline Pipeline => _pipeline;
@ -102,6 +104,7 @@ namespace Ryujinx.Graphics.Metal
public IProgram CreateProgram(ShaderSource[] shaders, ShaderInfo info)
{
ProgramCount++;
return new Program(this, _device, shaders, info.ResourceLayout, info.ComputeLocalSize);
}

View File

@ -138,9 +138,9 @@ namespace Ryujinx.Graphics.Metal
_requestedHeight = height;
}
public void ChangeVSyncMode(bool vsyncEnabled)
public void ChangeVSyncMode(VSyncMode vSyncMode)
{
// _vsyncEnabled = vsyncEnabled;
//_vSyncMode = vSyncMode;
}
public void SetAntiAliasing(AntiAliasing effect)

View File

@ -22,8 +22,9 @@ namespace Ryujinx.Headless.SDL2.Metal
GraphicsDebugLevel glLogLevel,
AspectRatio aspectRatio,
bool enableMouse,
HideCursorMode hideCursorMode)
: base(inputManager, glLogLevel, aspectRatio, enableMouse, hideCursorMode) { }
HideCursorMode hideCursorMode,
bool ignoreControllerApplet)
: base(inputManager, glLogLevel, aspectRatio, enableMouse, hideCursorMode, ignoreControllerApplet) { }
public override SDL_WindowFlags GetWindowFlags() => SDL_WindowFlags.SDL_WINDOW_METAL;