vshs:GameDev

狙うはグリーンのターゲット

ユーザ用ツール

サイト用ツール


ue5:tips:get-cpu-gpu

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
ue5:tips:get-cpu-gpu [2025/05/03 21:41] vshs_adminue5:tips:get-cpu-gpu [2025/05/03 22:53] (現在) vshs_admin
行 11: 行 11:
  
 === HardwareFunctions.h === === HardwareFunctions.h ===
- 
-<code cpp> 
-#include "HardwareFunctions.h" 
- 
-FString UHardwareFunctions::GetCPUBrandName() 
-{ 
- return FWindowsPlatformMisc::GetCPUBrand(); 
-} 
- 
-FString UHardwareFunctions::GetGPUBrandName() 
-{ 
- return FWindowsPlatformMisc::GetPrimaryGPUBrand(); 
-} 
-</code> 
- 
- 
-=== HardwareFunctions.cpp === 
 <code cpp> <code cpp>
 #pragma once #pragma once
行 51: 行 34:
  
 </code> </code>
 +
 +=== HardwareFunctions.cpp ===
 +
 +<code cpp>
 +#include "HardwareFunctions.h"
 +
 +FString UHardwareFunctions::GetCPUBrandName()
 +{
 + return FWindowsPlatformMisc::GetCPUBrand();
 +}
 +
 +FString UHardwareFunctions::GetGPUBrandName()
 +{
 + return FWindowsPlatformMisc::GetPrimaryGPUBrand();
 +}
 +</code>
 +
 +
 +
ue5/tips/get-cpu-gpu.1746276074.txt.gz · 最終更新: 2025/05/03 21:41 by vshs_admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki