/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/Jolt/Compute/VK/IncludeVK.h
43 строки
871 B
Jan Krassnigg
Updated Jolt (#1921)
28 апр 2026, 12:24
Не верифицирован
28 апр 2026, 12:24
600d1da
Код
Авторство
О чём код?
// Jolt Physics Library (https://github.com/jrouwe/JoltPhysics) // SPDX-FileCopyrightText: 2025 Jorrit Rouwe // SPDX-License-Identifier: MIT #pragma once #include <Jolt/Core/StringTools.h> #ifdef JPH_USE_VK JPH_SUPPRESS_WARNINGS_STD_BEGIN JPH_CLANG_SUPPRESS_WARNING("-Wc++98-compat-pedantic") #include <vulkan/vulkan.h> JPH_SUPPRESS_WARNINGS_STD_END JPH_NAMESPACE_BEGIN inline bool VKFailed(VkResult inResult) { if (inResult == VK_SUCCESS) return false; Trace("Vulkan call failed with error code: %d", (int)inResult); JPH_ASSERT(false); return true; } template <class Result> inline bool VKFailed(VkResult inResult, Result &outResult) { if (inResult == VK_SUCCESS) return false; String error = StringFormat("Vulkan call failed with error code: %d", (int)inResult); outResult.SetError(error); return true; } JPH_NAMESPACE_END #endif // JPH_USE_VK