/
antonprv
/
Lightbringer
Обзор
Документация
Войти
/
antonprv
/
Lightbringer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
vite-fork
Source/GPUCheck/Public/GPUCheck.h
37 строк
1015 B
Your Name
Finished with asset migration and optimization, now working on motion matching system
30 дек 2025, 00:34
30 дек 2025, 00:34
696d35c
Код
Авторство
О чём код?
// Copyright Anton Piruev. All Rights Reserved. // You can use this project non-commercially for educational purposes, any // commercial use, derivative commercial use is strictly prohibited #pragma once #include "CoreMinimal.h" #include "Modules/ModuleManager.h" #include "Windows/WindowsHWrapper.h" THIRD_PARTY_INCLUDES_START #include "Windows/AllowWindowsPlatformTypes.h" #include "dxgi1_4.h" #include "Windows/HideWindowsPlatformTypes.h" THIRD_PARTY_INCLUDES_END #if defined(GPUCHECK_EXPORTS) #define GPUCHECK_API DLLEXPORT #else #define GPUCHECK_API DLLIMPORT #endif class GPUCHECK_API FGPUCheckModule : public IModuleInterface { public: static int32 GetTotalVRAM(); static int32 GetUsedVRAM(); private: static DXGI_QUERY_VIDEO_MEMORY_INFO GetVideoMemoryInfo(); // Default to artifial 3GB VRAM GPU in any undefined behaviour // and act as if its VRAM is almost full. static constexpr int32 FallbackTotalVRAMMB = 3072; static constexpr int32 FallbackUsedVRAMMB = 2800; };