GPU frame capture fails with argument buffer

I'm developing Metal app for a while.


This time I decided to make use of argument buffers to handle complex scenes.

I managed to get things working but once I start GPU frame capture, the replayer terminates unexpectedly.

The error code was 512.


I can use GPU frame capture with my none Argument buffers codes,

but switching to codes using Argument buffers it always fails.


To see what the cause was, I used Console App and found the error description showing,


-[AGXA13FamilyIndirectArgumentBufferLayout uniqueIdentifierForRenderPipelineAtIndex:inIndirectArgumentBuffer:atOffset:]: unrecognized selector sent to instance


As you can see, the error is somewhat related to A13 (my device is iPhone11 Pro).


How can I work around of this error and debug with my Argument buffers codes?

By any chance is your project written in Swift? I was receiving the same error code when trying to use frame capture followed immediately by a crash. I could usually reopen Xcode and see some of the frame capture, but mostly nothing useful.

I switched the code to Objective-C and frame capture started working again so ..... yeah :\
GPU frame capture fails with argument buffer
 
 
Q