mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-10 05:08:31 +09:00
- Add MOBILEGL_ENABLE_DILIGENT option; build DiligentCore Vulkan-only after MobileGL's existing 3rdparty targets so shared glslang/SPIRV-Cross/xxHash targets are reused instead of duplicated. - Add BackendType::DiligentVulkan, config parsing, and backend-object switch. - Add DiligentBackend::BackendObject_Diligent skeleton: creates a Diligent Vulkan device/context when an adapter is available, advertises GL 3.2 core, and returns an empty GL function table for now. - Add local DiligentVulkanSanityTest that compiles/runs on the host (skips device creation gracefully when no Vulkan adapter is present). - Fix GLXImpl EGLDisplay member shadowing the X11 Display typedef, exposed by GCC 16 + Diligent header include order.
18 lines
604 B
C++
18 lines
604 B
C++
// MobileGL - MobileGL/MG_Backend/Diligent/DiligentVulkan.h
|
|
// Copyright (c) 2026 MobileGL-Dev
|
|
// Licensed under the GNU Lesser General Public License v3.0:
|
|
// https://www.gnu.org/licenses/gpl-3.0.txt
|
|
// https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
// SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
#pragma once
|
|
|
|
#include <Includes.h>
|
|
|
|
namespace MobileGL::MG_Backend::DiligentBackend {
|
|
// Backend identity string used by the backend object and local smoke tests.
|
|
inline String GetDiligentVulkanBackendName() {
|
|
return "DiligentVulkan";
|
|
}
|
|
} // namespace MobileGL::MG_Backend::DiligentBackend
|