Blit at the end of the render

This commit is contained in:
Isaac Marovitz 2024-03-19 21:29:14 -04:00
parent 54865122aa
commit 1b7634f232
No known key found for this signature in database
GPG Key ID: 97250B2B09A132E1
1 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,10 @@ namespace Ryujinx.Graphics.Metal
descriptor.ColorAttachments.SetObject(colorAttachment, 0);
var renderCommandEncoder = _commandBuffer.RenderCommandEncoder(descriptor);
_renderEncoderState = new RenderEncoderState(
_helperShaders.BlitShader.VertexFunction,
_helperShaders.BlitShader.FragmentFunction,
_device);
_renderEncoderState.SetEncoderState(renderCommandEncoder, _vertexDescriptor);
var sampler = _device.NewSamplerState(new MTLSamplerDescriptor