Skip to content

Commit

Permalink
Enable queue specific capturing for Mac 10.15+
Browse files Browse the repository at this point in the history
  • Loading branch information
kakashidinho committed Jul 13, 2021
1 parent d082dce commit 893fa12
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/libANGLE/renderer/metal/SurfaceMtl.mm
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,14 @@ void StartFrameCapture(id<MTLDevice> metalDevice, id<MTLCommandQueue> metalCmdQu
if (ANGLE_APPLE_AVAILABLE_XCI(10.15, 13.0, 13))
{
MTLCaptureDescriptor *captureDescriptor = [[MTLCaptureDescriptor alloc] init];
captureDescriptor.captureObject = metalDevice;
if (FrameCaptureDeviceScope())
{
captureDescriptor.captureObject = metalDevice;
}
else
{
captureDescriptor.captureObject = metalCmdQueue;
}

NSError *error;
if (![captureManager startCaptureWithDescriptor:captureDescriptor error:&error])
Expand Down

0 comments on commit 893fa12

Please sign in to comment.