Browse Source

Add gpu_device_name

luboslenco 3 weeks ago
parent
commit
4490601762
1 changed files with 2 additions and 1 deletions
  1. 2 1
      base/sources/backends/metal_gpu.m

+ 2 - 1
base/sources/backends/metal_gpu.m

@@ -644,7 +644,8 @@ void gpu_index_buffer_unlock(gpu_buffer_t *buffer) {
 }
 
 char *gpu_device_name() {
-	return "";
+	id<MTLDevice> device = get_metal_device();
+	return (char *)[device.name UTF8String];
 }
 
 typedef struct inst {