/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/Engine/RendererDX11/RendererDX11PCH.h
29 строк
738 B
Jan Krassnigg
Refactor of platform specific includes (#1414)
23 окт 2024, 10:09
Не верифицирован
23 окт 2024, 10:09
74f6d97
Код
Авторство
О чём код?
#pragma once #include <Foundation/Basics.h> #include <Foundation/Logging/Log.h> #ifdef EZ_USE_DXVK // These are shims to make DXVK compile our RendererDX11 library # if EZ_ENABLED(EZ_PLATFORM_LINUX) # define INFINITE 0xFFFFFFFF # endif # include <Core/System/Window.h> # include <Foundation/Platform/Win/Utils/MinWindows.h> # include <windows_base.h> namespace ezMinWindows { template <> struct ToNativeImpl<ezWindowHandle> { using type = ::HWND; static EZ_ALWAYS_INLINE ::HWND ToNative(ezWindowHandle hWnd) { EZ_ASSERT_DEV(hWnd.type == ezWindowHandle::Type::GLFW, "Only GLFW is supported on DXVK"); return reinterpret_cast<::HWND>(hWnd.glfwWindow); } }; } // namespace ezMinWindows #endif