vshs:GameDev

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

ユーザ用ツール

サイト用ツール


ue5:tips:get-cpu-gpu

差分

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

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
ue5:tips:get-cpu-gpu [2025/05/03 21:28] vshs_adminue5:tips:get-cpu-gpu [2025/05/03 22:53] (現在) vshs_admin
行 1: 行 1:
 ====== CPUとGPUを取得 ====== ====== CPUとGPUを取得 ======
-<note oteage>執筆中</note> +Windows向け\\
-[[https://www.reddit.com/r/unrealengine/comments/1kbbo1o/getting_hardware_information_in_c/|Getting hardware information in C++]]+
  
-=== HardwareFunctions.h ===+===== 参考 =====
  
-<code cpp> +[[https://www.reddit.com/r/unrealengine/comments/1kbbo1o/getting_hardware_information_in_c/|Getting hardware information in C++]]\\ 
-#include "HardwareFunctions.h"+[[https://forums.unrealengine.com/t/can-i-get-the-gpu-and-cpu-name-in-bp/46762|Can i get the gpu and cpu name in bp?]]\\
  
-FString UHardwareFunctions::GetCPUBrandName() 
-{ 
- return FWindowsPlatformMisc::GetCPUBrand(); 
-} 
  
-FString UHardwareFunctions::GetGPUBrandName() +===== 内容 =====
-+
- return FWindowsPlatformMisc::GetPrimaryGPUBrand(); +
-+
-</code>+
  
- +=== HardwareFunctions.===
-=== HardwareFunctions.cpp ===+
 <code cpp> <code cpp>
 #pragma once #pragma once
行 44: 行 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.1746275333.txt.gz · 最終更新: 2025/05/03 21:28 by vshs_admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki