mirror of
https://github.com/GreemDev/Ryujinx.git
synced 2025-01-27 03:33:04 -03:00
TODO
This commit is contained in:
parent
e0ea464c40
commit
ff0362063a
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ namespace Ryujinx.Graphics.Metal
|
||||||
_device = device;
|
_device = device;
|
||||||
_mtlCommandQueue = commandQueue;
|
_mtlCommandQueue = commandQueue;
|
||||||
|
|
||||||
|
// TODO: Recreate descriptor and encoder state as needed
|
||||||
var renderPipelineDescriptor = new MTLRenderPipelineDescriptor();
|
var renderPipelineDescriptor = new MTLRenderPipelineDescriptor();
|
||||||
var error = new NSError(IntPtr.Zero);
|
var error = new NSError(IntPtr.Zero);
|
||||||
_renderEncoderState = new(_device.NewRenderPipelineState(renderPipelineDescriptor, ref error), _device);
|
_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)}");
|
Logger.Error?.PrintMsg(LogClass.Gpu, $"Failed to create Render Pipeline State: {StringHelper.String(error.LocalizedDescription)}");
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
|
||||||
_commandBuffer = _mtlCommandQueue.CommandBuffer();
|
_commandBuffer = _mtlCommandQueue.CommandBuffer();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue