@@ -153,6 +153,7 @@ static void printGPUResult(FFGPUOptions* options, uint8_t index, const FFGPUResu
153153 FF_FORMAT_ARG (sPercentBar , "shared-percentage-bar" ),
154154 FF_FORMAT_ARG (coreUsageNum , "core-usage-num" ),
155155 FF_FORMAT_ARG (coreUsageBar , "core-usage-bar" ),
156+ FF_FORMAT_ARG (gpu -> memoryType , "memory-type" ),
156157 }));
157158 }
158159}
@@ -411,6 +412,8 @@ void ffGenerateGPUJsonResult(FFGPUOptions* options, yyjson_mut_doc* doc, yyjson_
411412 else
412413 yyjson_mut_obj_add_null (doc , sharedObj , "used" );
413414
415+ yyjson_mut_obj_add_strbuf (doc , obj , "memoryType" , & gpu -> memoryType );
416+
414417 if (gpu -> temperature == gpu -> temperature ) //FF_GPU_TEMP_UNSET
415418 yyjson_mut_obj_add_real (doc , obj , "temperature" , gpu -> temperature );
416419 else
@@ -469,8 +472,9 @@ static FFModuleBaseInfo ffModuleInfo = {
469472 {"Dedicated memory usage percentage bar" , "dedicated-percentage-bar" },
470473 {"Shared memory usage percentage num" , "shared-percentage-num" },
471474 {"Shared memory usage percentage bar" , "shared-percentage-bar" },
472- {"Core usage percentage num (supports Nvidia & Apple GPU only)" , "core-usage-num" },
473- {"Core usage percentage bar (supports Nvidia & Apple GPU only)" , "core-usage-bar" },
475+ {"Core usage percentage num" , "core-usage-num" },
476+ {"Core usage percentage bar" , "core-usage-bar" },
477+ {"Memory type (Windows only)" , "memory-type" },
474478 })),
475479};
476480
0 commit comments