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

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

View File

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

View File

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