Skip to content

Commit

Permalink
But does it like Metal
Browse files Browse the repository at this point in the history
  • Loading branch information
malfet committed Oct 19, 2023
1 parent 0fb4ce6 commit ad252c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion query_metal.mm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ int main() {
NSLog(@"Metal device count %lu", devices.count);
for (unsigned long i = 0 ; i < devices.count ; i++) {
id<MTLDevice> device = devices[i];
NSLog(@"Found device %@ isLowPower %s", device.name, device.isLowPower ? "true" : "false");
NSLog(@"Found device %@ isLowPower %s supports Metal %s",
device.name,
device.isLowPower ? "true" : "false",
[device supportsFamily:MTLGPUFamilyMac2] ? "true" : "false");
}
}
}

0 comments on commit ad252c2

Please sign in to comment.