This commit is contained in:
Isaac Marovitz 2023-07-29 01:20:15 -04:00
parent ce8c2aaf5c
commit 73b1f9a316
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ namespace Ryujinx.Graphics.Metal
_device = device;
_mtlCommandQueue = commandQueue;
// TODO: Recreate descriptor and encoder state as needed
var renderPipelineDescriptor = new MTLRenderPipelineDescriptor();
var error = new NSError(IntPtr.Zero);
_renderEncoderState = new(_device.NewRenderPipelineState(renderPipelineDescriptor, ref error), _device);
@ -38,6 +39,7 @@ namespace Ryujinx.Graphics.Metal
{
Logger.Error?.PrintMsg(LogClass.Gpu, $"Failed to create Render Pipeline State: {StringHelper.String(error.LocalizedDescription)}");
}
//
_commandBuffer = _mtlCommandQueue.CommandBuffer();
}