I'm not sure how to attach an Xcode project here, it won't let me select the Xcode project file (or folder) to attach.
But creating a command line app with single file main.m below gives me the output:
2022-12-12 18:49:36.578621-0500 counter test[70895:1590946] Metal GPU Frame Capture Enabled
2022-12-12 18:49:36.581789-0500 counter test[70895:1590946] Metal API Validation Enabled
2022-12-12 18:49:36.652955-0500 counter test[70895:1590946] Error Domain=com.apple.mtlrenderer Code=14 "out of memory" UserInfo={NSLocalizedDescription=out of memory}
Program ended with exit code: 1
Here's the file
#import <Foundation/Foundation.h>
#import <Metal/Metal.h>
int main() {
@autoreleasepool {
id<MTLDevice> device = MTLCreateSystemDefaultDevice();
MTLCounterSampleBufferDescriptor * descriptor = [MTLCounterSampleBufferDescriptor new];
NSError * error = nil;
id<MTLCounterSampleBuffer> sample_buffer = [device newCounterSampleBufferWithDescriptor:descriptor error:&error];
if(sample_buffer == nil) {
NSLog(@"%@", error);
return 1;
} else {
return 0;
}
}
}
Let me know what else to provide. I also submitted the attachment on Feedback Assistant, but I'm not sure what numbers you're talking about.
Topic:
Graphics & Games
SubTopic:
General
Tags: